Google Maps Data Scraper is a Python project for scraping data from Google Maps based on keyword input. The data scraped includes:
- Title (Location name)
- Address
- Rating
- Reviews (Number of reviews)
- Link (URL of the location)
The output data will be saved in a CSV file with a |
delimiter, stored in the results
folder.
- Scraping based on keyword input.
- Supports scraping the following data:
- Location name
- Address
- Rating
- Number of reviews
- Location URL
- Output in CSV format with
|
delimiter. - Uses Selenium WebDriver for navigation and data retrieval.
Ensure you have:
- Python 3.7 or newer
- Google Chrome (or another browser supported by Selenium)
- ChromeDriver (version must match your Google Chrome version)
-
Clone this repository:
git clone <REPOSITORY_URL> cd <REPOSITORY_FOLDER_NAME>
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # For Linux/Mac venv\Scripts\activate # For Windows
-
Install dependencies from
requirements.txt
:pip install -r requirements.txt
-
Ensure
ChromeDriver
is accessible to Selenium. Place thechromedriver
file in your PATH or in the project directory.
-
Run the script with a keyword input:
python app.py
-
The scraped data will be saved in the
results
folder with a timestamped file name.
The CSV file will have the following format:
Title | Address | Rating | Reviews | Link |
---|---|---|---|---|
Location Name 1 | Location Address 1 | 4.5 | 120 | https://maps.google.com/... |
Location Name 2 | Location Address 2 | 4.0 | 85 | https://maps.google.com/... |
.
|── app.py # Main script for scraping
|── requirements.txt # Python dependencies
|── results/ # Folder to store outputs
|── chromedriver/ # Folder to run webdriver
|── README.md # Project documentation
|── .gitignore # File to ignore specific files in Git
Contributions are welcome! If you find any bugs or have features you'd like to add, feel free to create a pull request or report an issue in the issues section.
This project is licensed under the MIT License.
- The use of this project must comply with Google Maps' terms of service.
- Scraping data without permission may violate Google's service policies.
- Use this project for personal or educational purposes only.