Skip to content

Instantly share code, notes, and snippets.

@rtuita23
Created April 20, 2016 17:09
Show Gist options
  • Save rtuita23/65e99fd90572aea8166c40804fc65425 to your computer and use it in GitHub Desktop.
Save rtuita23/65e99fd90572aea8166c40804fc65425 to your computer and use it in GitHub Desktop.
using dev.loc.com api to build a simple api call from python
import urllib2
import json
url = 'https://api.locu.com/v1_0/venue/search/?locality=lake%20stevens&api_key=9cec4ffbd2988adb04dfdd6ed07e97278861c476'
json_obj = urllib2.urlopen(url)
data = json.load(json_obj)
print data['objects'][2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment