Advertisement
NickG

Untitled

Nov 28th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. import urllib.request as request
  2.  
  3. url = 'https://api.challonge.com/v1/tournaments/713594.json'
  4. headers = {'Authorization': 'Basic R3JvbmRvNDpVZGtUNnp1RHhVUTJacWpwSUxJUVR4WU9lWk5EU0NsaVc0OFdwQ2V1'}
  5. req = request.Request(url, headers = headers, method='GET')
  6. rep = request.urlopen(req)
  7. data = rep.read().decode('utf-8')
  8. print(data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement