This repository contains two Python scripts that allow you to scrape Yelp for restaurant reviews and generate a report in the form of a PDF. These scripts are written in Jupyter notebook and are intended for personal use.
This project consists of two parts:
-
Yelp Scrape Function.ipynb
- This script is used to scrape Yelp for the top 10 restaurants based on your specified food and city. The script then generates a CSV file containing metadata for the first restaurant on the list along with all its reviews. -
Yelp Summarize Function.ipynb
- This script reads the previously generated CSV file and creates a PDF report based on the restaurant metadata and its reviews.
To get started, clone the repository using this command:
git clone https://github.com/panagiotisgia/Yelp_Review_Summarization.git
Run Yelp Scrape Function.ipynb
in Jupyter Notebook. This script will prompt you to enter your desired food and city. Upon execution, it will create a CSV file with metadata of the top-rated restaurant regarding the input food and city along with all its reviews.
After the CSV is created, run Yelp Summarize Function.ipynb
. This script will read the CSV file and generate a PDF report containing metadata about the restaurant and its reviews.
Here is a sample output of the PDF report:
(Food: Indian Food, City: London)
To download the full PDF report, click here.
This project is licensed under the Apache License 2.0. This is a permissive license whose main conditions require preservation of copyright and license notices. Contributors provide an express grant of patent rights. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
For more information, see the LICENSE
file in this repository or visit Apache License 2.0.