Automation script for extracting Google Maps reviews of any place using Selenium and Python.
This project automates the process of scraping reviews from Google Maps. It scrolls through the reviews section, extracts relevant information, and stores it in a structured format (JSON).
You can use this for:
- Research and analytics
- Website testimonial
- Sentiment analysis
- Business insights
- Data collection projects
- Automatically loads and scrolls through all reviews
- Extracts reviewer name, profile image, rating and full review text
- Saves data in JSON format
- Easy-to-run Python script
- Modular and extendable code
Follow these steps to set up the script on your machine.
git clone https://github.com/yourusername/google-maps-review-scraper.git
cd google-maps-review-scraperpython -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windowspip install -r requirements.txtOr manually install:
pip install selenium bs4 flask- Download ChromeDriver matching your Chrome version
- Place it in your project folder or system PATH
To run the script that collects reviews:
python scrap.pyThis will:
- Launch Chrome via Selenium
- Open Google Maps
- Scroll through reviews
- Extract all data
- Save it to
data.json
If you want to serve the extracted data using a simple web interface:
python app.pyThen open the displayed URL in your browser (usually http://127.0.0.1:5000).
├── scrap.py # Main script for scraping Google Maps reviews
├── app.py # Flask server to serve/display data
├── data.json # Scraped output data
├── requirements.txt
├── README.md
├── templates
| └── index.html
└── Screenshots/ # (Optional) folder for screenshots
Feel free to open issues or make PRs to improve the scraper.
MIT License
If you like this project, consider giving the repo a ⭐
