Skip to content

Omar88magdy/Automated-google-maps-scraping-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Automated google maps scraper

Mainstream your scraping process

About The Project

This project integrates an open-source JavaScript scraper with a Python script to automate data extraction from Google Maps using Selenium. The tool is designed to efficiently gather information such as names, addresses, and ratings of restaurants and cafes. By automating the scraping process, the project simplifies data collection for analysis and research, ensuring reliable performance with robust error handling.

Getting Started

To set up the automated Google Maps scraper, follow these steps:

Prerequisites

Python Make sure you have Python installed on your system. You can download it from here
Google Chrome Ensure you have the latest version of Google Chrome installed from here.

Installation

  1. First, clone the repository to your local machine using the following command:
git clone https://github.com/Omar88magdy/Automated-google-maps-scraping-
  1. Download chrome driver that matches you chrome version
cd Downloads
ls Downloads
  1. Navigate to the directory
cd Automated-google-maps-scraping-
  1. Install the required packages
pip install -r requirements.txt
  1. Change chrome_driver_path variable to the location for chrome driver

  2. Open script.py and modify the search_query variable then run the script

python script.py

Usage

Walkthrough the usage:

  • After running the script directly chrome will open and googlemaps will start searching by your search query

Chrome searching

  • Search results will start showing up and the automated scrolling will start scrolling

Chrome searching

  • A google_maps_data.csv file will be generated in the directory containing the scraped data

Chrome searching

  • A search_query.xlsx file will be generated after doing some cleaning and renaming procedures

containing

- Name
- Review stars rating
- Reviews count
- Google maps url
- location(lat, lon)

Chrome searching

Refrences

link for Extension

Contact

Omar Magdy - Linkedin - [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages