Guest User

Untitled

a guest
Apr 24th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. import urllib.request, json
  2.  
  3. with urllib.request.urlopen("https://api.example.com/method/execute.getJSON?&lang=en&https=1") as url:
  4.  
  5. response = json.loads(url.read().decode())
Add Comment
Please, Sign In to add comment