Created
September 2, 2014 09:03
-
-
Save vrootic/a93e082f553f1cc41ec7 to your computer and use it in GitHub Desktop.
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 requests | |
| request_api = 'https://api.foursquare.com/v2/venues/search' | |
| your_client_id = '' | |
| your_client_secret = '' | |
| your_v = '20140902' | |
| your_near = 'New York, NY' | |
| request_params = dict( | |
| near=your_near, | |
| client_id=your_client_id, | |
| client_secret=your_client_secret, | |
| v=your_v) | |
| response = requests.get(request_api, params=request_params) | |
| result = response.json() | |
| print result["response"]["venues"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment