Skip to content

Google Business Data Scrapper, Scrape data from any google business listed on google maps. Get Name, Address, Phone, Reviews etc -- *New Feature : Scrape Business Emails from Websites

Notifications You must be signed in to change notification settings

r7avi/Google-Maps-Scrapper

Repository files navigation

Google-Maps-Scrapper

This Python script utilizes the Playwright library to perform web scraping and data extraction from Google Maps. It is particularly designed for obtaining information about businesses, including their name, address, website, phone number, reviews, and more.

Table of Contents

Prerequisite

  • This code requires a python version below 3.10
  • Any version of python beyond 3.10 may cause issues and may not work properly

Key Features

  • Data Scraping: The script scrapes data from Google Maps listings, extracting valuable information about businesses, such as their name, address,address short code, website, and contact details.

  • Review Analysis: It extracts review counts and average ratings, providing insights into businesses' online reputation.

  • Business Type Detection: The script identifies whether a business offers in-store shopping, in-store pickup, or delivery services.

  • Operating Hours: It extracts information about the business's operating hours.

  • Introduction Extraction: The script also scrapes introductory information about the businesses when available.

  • Data Cleansing: It cleanses and organizes the scraped data, removing redundant or unnecessary columns.

  • CSV Export: The cleaned data is exported to a CSV file for further analysis or integration with other tools.

Installation

  1. Clone this repository:

    git clone https://github.com/r7avi/Google-Maps-Scrapper.git
  2. Navigate to the project directory:

    cd google-maps-scraping
  3. Update PIP:

     python -m pip install --upgrade pip
    
  4. Install the required Python packages:

    pip install -r requirements.txt
    
    
    

How to Use:

To use this script, follow these steps:

  1. Run the script with Python:

     python main.py

    Load all your Quries in Query.txt, each line treated as 1 query

      doctors in new york
      dentist in new yersy
  2. Change total_listings in run.py . Min : 20 and Max : 150

  3. The script will launch a browser, perform the search, and start scraping information. It will display the progress and save the results to a CSV file called searchname_results.csv.

Docker :

  1. If you want to run in Docker ,In Docker/app : update Query.txt and Modify Server details in Scrapper.py and add your Linux SSH Details so Scrapped data can be stored in your Linux server.

    Execute below command in Docker folder . [Note You Must Have Docker Installed in your Win/Linux]

      docker-compose up --build

About

Google Business Data Scrapper, Scrape data from any google business listed on google maps. Get Name, Address, Phone, Reviews etc -- *New Feature : Scrape Business Emails from Websites

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published