Skip to content

Instantly share code, notes, and snippets.

@danjac
Created June 4, 2015 20:39
Show Gist options
  • Save danjac/b0479fbcc967445a2eb0 to your computer and use it in GitHub Desktop.
Save danjac/b0479fbcc967445a2eb0 to your computer and use it in GitHub Desktop.
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
@danjac
Copy link
Author

danjac commented Jun 4, 2015

Not really interested in the job but got bored while running a database backup :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment