GoogleMapsScraper: A Python-based tool to scrape nearby places and reviews from Google Maps using Selenium and BeautifulSoup. Gather location data, ratings, and user reviews with ease.
MIT License
GoogleMapsScraper is a Python-based tool designed to scrape location details and user reviews from Google Maps using Selenium and BeautifulSoup. This script allows you to gather data on nearby places, including their names, ratings, addresses, phone numbers, and reviews.
Follow these steps to set up the GoogleMapsScraper tool:
Clone the repository:
git clone https://github.com/your-username/GoogleMapsScraper.git
cd GoogleMapsScraper
Install dependencies:
Make sure you have Python 3.7+ installed, then install the required packages:
pip install selenium beautifulsoup4
Download WebDriver:
Download the appropriate Chrome WebDriver for your version of Chrome from ChromeDriver download. Ensure the WebDriver executable is in your system's PATH, or specify the path in the script.
Script Configuration
To scrape places and reviews in your desired location:
Run the script:
python google_map_scraper.py
Output:
The script will output the name, rating, phone number, address, and reviews for each place. Example output:
Name: Vegetarian Restaurant XYZ
Rating: 4.5
Phone Number: +1-234-567-890
Address: 123 Main St, Your City, Country
URL: https://www.google.com/maps/place/...
Reviews:
- {'author': 'John Doe', 'date': '1 month ago', 'text': 'Great food!'}
- {'author': 'Jane Smith', 'date': '2 weeks ago', 'text': 'Excellent service!'}
We welcome contributions to GoogleMapsScraper! Feel free to fork the repository, create a branch, and submit a Pull Request with your improvements or new features.
This project is licensed under the MIT License. See the LICENSE file for more information.