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
Use $Env:token="..."
to set the api key environment variable on Windows.
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"))
Credits
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.4.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for ezapi_yelp-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e76f2870d810725f3f298701f038ef6fbec62e42c9c5bbd660fa828c3013c735 |
|
MD5 | aa93ed6abc61e0ff1f861430f269e6b2 |
|
BLAKE2b-256 | 30210ceb5d2f4889ff9acb1df20ed599b1024a30aba18d7fa055b18754482cc0 |