-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
import requests
import json
api_key='S9q0xG2BD_ohAxsfex1zsrpNuhCTz1jdPrC9NgnmQIPvM84h1pwlTC_mjHgVQRLLokfjQ9HjsePce_kxRYd3ghpF2crzijVWuY727DJqKsawoGVK47QZk0GGVYZhYnYx'
headers = {'Authorization': 'Bearer %s' % api_key}
url='https://api.yelp.com/v3/businesses/search'
In the dictionary, term can take values like food, cafes or businesses like McDonalds
params = {'term':'paesanos','location':'Davis,CA'}
Making a get request to the API
req=requests.get(url, params=params, headers=headers)
json.loads(req.text)
print(req.json())
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request