Last active
October 4, 2018 15:23
-
-
Save CyberRoute/1b68afaf3421d04ab0a1b871ccf271b3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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