Skip to content

Instantly share code, notes, and snippets.

@basilleaf
Last active December 19, 2015 09:18
Show Gist options
  • Save basilleaf/5931540 to your computer and use it in GitHub Desktop.
Save basilleaf/5931540 to your computer and use it in GitHub Desktop.
grab remote json resource in python
import json
import requests
url = ''
data = json.loads(requests.get(url).text)
import json
import urllib2
url = ''
f = urllib2.urlopen(url)
json = json.load(f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment