Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- from urllib.request import urlopen
- with urlopen('https://api.github.com/users?since=135') as res:
- dataRead = res.read()
- # load as string
- # ------------------
- dataLoad = json.loads(dataRead)
- # print as a format
- # -------------------
- print(json.dumps(dataLoad, indent=2))
Advertisement
Add Comment
Please, Sign In to add comment