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.2.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for ezapi_yelp-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 645559b6aada229ba067ba4bda4bdc203a2cee3f33c24139cad87789b75c86be |
|
MD5 | d81e1d24ac9ffef56fd2f3c73280ad4c |
|
BLAKE2b-256 | e54740ccf9579db1517e90905c1df538b927c73f98ce6d3c8df95e9f4524f7c0 |