A Python wrapper for the Yelp API v2. The structure for this was inspired by the python-twitter library, and some internal methods are reused.
From pypi
pip install python-yelp-v2You must have yelp oauth credentials: http://www.yelp.com/developers/getting_started
import yelp yelp_api = yelp.API(consumer_key=MY_CONSUMER_KEY, consumer_secret=MY_CONSUMER_SECRET, access_token_key=MY_ACCESS_TOKEN, access_token_secret=MY_ACCESS_SECRET)search_results = yelp_api.Search(term="my search term") for business in search_results.businesses: print business.nameSee the exact attributes available on the search result set
business = yelp_api.GetBusiness('post-no-bills-brooklyn') print business.nameThe business class lists all of the attributes that are available for each business the API returns.
- Create classes for categories.
- Improve the location class
This software was developed during my time at Pontiflex, Inc., and thus that organization owns the copyright.
- Matthew Conlen (mathisonian)
- Chris Clouten (triplec1988)
Copyright 2012, 2013 Pontiflex, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.