This program demonstrates the capability of the Yelp Fusion API by using the Search API to query for businesses by a search term and location, and the Business API to query additional information about the top result from the search query.
Please refer to API documentation for more details.
To install the dependencies, run:
pip install -r requirements.txt.
Run the code sample without specifying any arguments:
python sample.py
Run the code sample by specifying the optional arguments:
python sample.py --term="bars" --location="San Francisco, CA"