A Python wrapper for Yelp API
Project description
ezapi-yelp
A Python wrapper for Yelp Fusion API,
Install
pip install ezapi_yelp
Test
git clone git@github.com:zehengl/ezapi-yelp.git
export token="..."
cd ezapi-yelp
python setup.py test
Usage
from yelp import YelpFusion
token = "..."
yelp_fusion = YelpFusion(token)
print(yelp_fusion.business_search(location="San Francisco"))
print(yelp_fusion.transaction_search("delivery", location="San Francisco"))
print(yelp_fusion.business_details("WavvLdfdP6g8aZTtbBQHTw"))
print(
yelp_fusion.business_match(
name="Gary Danko",
address1="800 N Point St",
city="San Francisco",
state="CA",
country="US",
)
)
print(yelp_fusion.reviews("WavvLdfdP6g8aZTtbBQHTw"))
print(
yelp_fusion.autocomplete(
text="Gary Danko", latitude=37.80587, longitude=-122.42058
)
)
print(yelp_fusion.all_categories())
print(yelp_fusion.category_details("hotdogs"))
print(yelp_fusion.event_lookup("oakland-saucy-oakland-restaurant-pop-up"))
print(yelp_fusion.event_search(location="Oakland"))
print(yelp_fusion.featured_event(location="Oakland"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ezapi_yelp-0.4.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for ezapi_yelp-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b1f1234cd03ccad8b63a8c98a70486980596a6b2a23c8a4ebe59b40a2cda73b |
|
MD5 | e47b9b4d8e6be382a6455b14751c3129 |
|
BLAKE2b-256 | d9d7dfd0d52659c536922c3d37228092719f4270d6fa73f6fc35ac68eb5602e7 |