Skip to content

Instantly share code, notes, and snippets.

@ziot
Created August 5, 2020 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ziot/4fbd0087adda560a334eef82d7364dc1 to your computer and use it in GitHub Desktop.
Save ziot/4fbd0087adda560a334eef82d7364dc1 to your computer and use it in GitHub Desktop.
Mr. Beast Riddle QR Code Solver
import requests,json
cookie = ""
def getNextCode():
url = "https://www.mrriddle.com/qrjustgettingstarted/api/get-next-code"
r = requests.post(url, cookies = {
"bitlagoon": cookie
})
return json.loads(r.text)["data"]["location"]
def getQRPage(code):
url = "https://www.mrriddle.com/qrjustgettingstarted/content/{}".format(code)
r = requests.post(url, cookies = {
"bitlagoon": cookie
})
if "fail-text" in r.text:
return False
return True
while True:
code = getNextCode()
if getQRPage(code):
print 'success: {}'.format(code)
else:
print 'failed'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment