Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- import urllib.request
- jsonUrl = "https://gist.githubusercontent.com/planetoftheweb/98f35786733c8cccf81e/raw/f3dad774ed1fe20b36011b1261bb392ee759b867/data.json"
- with urllib.request.urlopen(jsonUrl) as response:
- data = json.loads(response.read())
- print(data)
- jsonUrl = "http://8ball.delegator.com/magic/JSON/blah"
- with urllib.request.urlopen(jsonUrl) as response:
- data = json.loads(response.read())
- print(data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement