Created
May 10, 2016 21:36
-
-
Save mattroyer/a9ed1c398cddc4b3255133ddbf8cc04c to your computer and use it in GitHub Desktop.
Get JSON API in usable form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import json | |
github = urllib.urlopen('https://api.github.com/repos/google/acai') | |
body = github.read() | |
github.close() | |
json_data = json.loads(body) | |
print json_data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment