Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib.request as request
- url = 'https://api.challonge.com/v1/tournaments/713594.json'
- headers = {'Authorization': 'Basic R3JvbmRvNDpVZGtUNnp1RHhVUTJacWpwSUxJUVR4WU9lWk5EU0NsaVc0OFdwQ2V1'}
- req = request.Request(url, headers = headers, method='GET')
- rep = request.urlopen(req)
- data = rep.read().decode('utf-8')
- print(data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement