Skip to content

cunzhig/SI507-Final

Repository files navigation

SI507-Final

Data Source

Code Structure

Create tacos restaurants database

create_tacos_db() - Create tacos.sqlite
populate_tacos_db() - Create Table Restaurants and Cities from tacos.csv

Seacrh by Yelp API either by requests or CACHE (cache.json)

yelp_search(term, location) - Pass queries to make_request_using_cache()
make_request_using_cache() - Return requests results or cache

Search by database tacos.sqlite according to the city input

 db_search(city) - Pass city input to sqlite to search results from db

User guide

run py file: final_project.py

Search

1.Yelp API

a. Output to csv file
b. Output to plotly map
c. Read Top Reviews from Yelp web page

2.Tacos DB

i. Plot Top 10 cities with the most tacos restaurants (U.S.) in plotly bar charts
ii.Choose city in the U.S.

a. Output to csv file
b. Output to plotly map
c. Compare with Yelp results on plotly map

Exit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages