This script automates the process of scraping reviews from Google Maps for various pub locations.
- Scrapes reviews based on sorting options (relevant, newest, highest rating, lowest rating).
- Downloads associated images of reviews.
- Saves reviews data in CSV format.
- Deduplicates and merges all reviews from different sorting options.
- Python 3.x
- Selenium WebDriver
- ChromeDriver (compatible with the installed Chrome version)
Clone this repository to your local machine:
https://github.com/timadeg/google-map-reviews-scraper
cd pub-reviews-scraper
Install the required packages:
pip install -r requirements.txt
Update the london pubs2.csv
file with the list of pubs and their corresponding Google Maps URLs.
Run the script:
python pub_reviews_scraper.py
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.