1 from yelpapi import YelpAPI
2 from yelp_authentication import CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET
4 yelp_api = YelpAPI(CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET)
6 # Example search by location text and term. Take a look at
7 # http://www.yelp.com/developers/documentation/v2/search_api for
8 # the various options available.
10 # print the 5 best rated ice cream places in Austin, TX
12 response = yelp_api.search_query(term='ice cream', location='austin, tx', sort=2, limit=5)