Created
June 4, 2015 20:39
-
-
Save danjac/b0479fbcc967445a2eb0 to your computer and use it in GitHub Desktop.
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 | |
url = "http://letsrevolutionizetesting.com/challenge" | |
while True: | |
data = requests.get(url, headers={"Accept":"application/json"}) | |
json = data.json() | |
print(json) | |
if 'follow' in json: | |
url = json['follow'] | |
else: | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not really interested in the job but got bored while running a database backup :-)