Last active
December 16, 2015 05:18
-
-
Save hminaya/5383018 to your computer and use it in GitHub Desktop.
get JSON api with python
This file contains hidden or 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 urllib2 | |
import simplejson | |
url = "http://www.emplea.do/jobs.json" | |
resp = urllib2.Request(url) | |
opener = urllib2.build_opener() | |
data = opener.open(resp) | |
result = simplejson.load(data) | |
print result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment