Skip to content

Instantly share code, notes, and snippets.

@CyberRoute
Last active October 4, 2018 15:23
Show Gist options
  • Save CyberRoute/1b68afaf3421d04ab0a1b871ccf271b3 to your computer and use it in GitHub Desktop.
Save CyberRoute/1b68afaf3421d04ab0a1b871ccf271b3 to your computer and use it in GitHub Desktop.
# Python
import json
import requests
url = "http://letsrevolutionizetesting.com/challenge"
headers = {'accept': 'application/json'}
while True:
r = requests.get(url, headers=headers)
data = r.json()
if not 'follow' in data:
print(data)
break
url = data['follow']
print(url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment