Skip to content

Instantly share code, notes, and snippets.

@chrismetcalf
Created April 11, 2015 16:14
Show Gist options
  • Save chrismetcalf/6e61b6114ab68e079388 to your computer and use it in GitHub Desktop.
Save chrismetcalf/6e61b6114ab68e079388 to your computer and use it in GitHub Desktop.
import urllib2
# Make sure you register your own app token at http://dev.socrata.com/register
headers = {
"X-App-Token" : "YOUR_APP_TOKEN_HERE"
}
request = urllib2.Request("https://data.colorado.gov/resource/q2qp-xhnj.json?county=Denver&$limit=50", headers = headers)
response = urllib2.urlopen(request)
print response.read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment