X-Git-Url: https://projects.mako.cc/source/yelp-api-cdsw/blobdiff_plain/780a521a94cb490636e3cd296b9ce339db1517bc..5632f1d30d231449e6174f3f9860cda6ab5ae4d2:/yelp3.py diff --git a/yelp3.py b/yelp3.py new file mode 100644 index 0000000..51dbcde --- /dev/null +++ b/yelp3.py @@ -0,0 +1,16 @@ +from yelpapi import YelpAPI +from yelp_authentication import CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET + +yelp_api = YelpAPI(CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET) + +# Example business query. Look at +# http://www.yelp.com/developers/documentation/v2/business for more +# information. + +print("***** selected reviews for Amy's on 6th St. *****") + +business = yelp_api.business_query(id='amys-ice-creams-austin-3') + +for review in business['reviews']: + print('rating: %d\nexcerpt: %s\n' % (review['rating'], review['excerpt'])) +