Skip to content

Instantly share code, notes, and snippets.

Created December 3, 2013 03:16
What would you like to do?
Solution code for
from httplib import HTTPConnection
import json
if __name__ == '__main__':
base_url = '/challenge.json'
url = base_url
count = 0
conn = HTTPConnection('')
while count < 100:
conn.request("GET", url)
r = conn.getresponse()
print r.status, r.reason
data =
print data
json_dict = json.loads(data)
new_id = json_dict['follow'].split('=')[1]
url = base_url + '?id=' + new_id
print url
count += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment