A Python wrapper for Yelp API
Project description
ezapi-yelp
A Python wrapper for Yelp Fusion API
Install
From PyPi
pip install ezapi-yelp
From GitHub
pip install git+https://github.com/zehengl/ezapi-yelp.git
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"))
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.
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.8.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for ezapi_yelp-0.4.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8212321f29c24cccf074b7224b4da8821d44a51e1aad82cda6db7a9ddedf0624 |
|
MD5 | 0f3ee32cde40f7b8720cccb1bfa81d49 |
|
BLAKE2b-256 | 813c359590fc5a479ec8ffbbf54261f9b7c19215234af734eaf6d5d1d298da68 |