Advertisement
flwkjlwekjfs

Untitled

Jul 4th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import json
  2. import urllib.request
  3.  
  4. jsonUrl = "http://8ball.delegator.com/magic/JSON/blah"
  5. #jsonUrl = "https://raw.githubusercontent.com/magnusmichaelson/rack3d/master/rack3d_json/example.json"
  6.  
  7. with urllib.request.urlopen(jsonUrl) as response:
  8. data = json.loads(response.read())
  9. print(data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement