Created
August 5, 2020 18:28
-
-
Save ziot/4fbd0087adda560a334eef82d7364dc1 to your computer and use it in GitHub Desktop.
Mr. Beast Riddle QR Code Solver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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