Skip to content
 
 

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Maps Scraper

Google Maps Scraper CSV Result

This is a Python script that allows you to scrape information from Google Maps, including business names, addresses, phone numbers, websites, ratings, and reviews. The script can be configured to search for specific queries and can scrape either the first page of results or all pages of results.

Installation

  1. Clone Starter Template
git clone https://github.com/omkarcloud/google-maps-scraper
cd google-maps-scraper
  1. Install dependencies
python -m pip install -r requirements.txt
  1. Run Project
python main.py

The script will start running and output progress updates to the console. When the scraper is complete, it will generate a CSV file named finished.csv in the output directory. The CSV file will contain the business name, address, phone number, website, rating, and review for each result.

Additionaly, you don't have to configure the Selenium driver as it will automatically download the appropriate driver based on your Chrome browser version.

Configuration

  • To specify the Google search queries to be used in the scraper, open the src/scraper.py file in your preferred text editor and update the Task.queries list with your desired queries.

  • To specify whether to scrape the first page of Google Maps results or all pages of results, open the src/scraper.py file and set the Task.GET_FIRST_PAGE variable to True or False as appropriate.

Learn More

The Google Maps Scraper is built with Bose Framework, a bot development framework that is Swiss Army Knife for bot developers. To learn Bose Bot Development Framework, read the bose docs at https://www.omkar.cloud/bose/

If my code helped you in scraping Google Maps, please take a moment to star the repository. Your act of starring will help developers in discovering our Repository and contribute towards helping fellow developers in their scraping needs. Dhanyawad 🙏! Vande Mataram!

I've created a project capable of parallely running hundreds of bots to scrape Google Maps at scale. If you're interested in saving hours of development time by scraping Google Maps at scale, kindly contact via WhatsApp at https://www.omkar.cloud/l/whatsapp or email me at chetan@omkar.cloud and I would be happy to help.

About

This is a Python script that allows you to scrape information from Google Maps, including business names, addresses, phone numbers, websites, ratings, and reviews.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages