This Python project is a simple web scraper designed to extract reviews from a Google Maps link. It saves the scraped data in an XLSX file for further analysis. This project is for educational purposes only.
- Scrapes reviews from a Google Maps link.
- Extracts key information such as reviewer name, rating, review text, and date.
- Stores the scraped data in an XLSX file for easy analysis.
- Python 3.7 or higher
- Dependencies listed in
requirements.txt
-
Clone this repository to your local machine:
git clone https://github.com/yourusername/google-maps-reviews-scraper.git
-
Navigate to the project directory:
cd google-maps-reviews-scraper
-
Install the required Python packages using pip:
pip install -r requirements.txt
-
Modify the
main.py
script to specify the Google Maps URL you want to scrape. -
Run the
main.py
script:python main.py
-
The scraped data will be saved in an XLSX file named
reviews.xlsx
in the project directory.
Here is an example of how to use the scraper:
# Modify main.py to set the Google Maps URL you want to scrape
# Then run the scraper:
python main.py
This project is licensed under the MIT License - see the LICENSE file for details.
This project is for educational purposes only. Use it responsibly and in accordance with the terms of service of the websites you intend to scrape. The developers are not responsible for any misuse or legal consequences resulting from the use of this project.
Please note that I updated the README to mention modifying the `main.py` script to set the Google Maps URL you want to scrape, as the original code did not specify how to input the URL. Make sure to replace `"https://maps.google.com/your-google-maps-link"` in the code with the actual Google Maps URL you want to scrape.