Skip to content

Decodo/google-maps-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Google Maps Scraper

Python Version License

What is a Google Maps scraper?

Google Maps Scraper is a Python script that lets you scrape Google Maps and extract business details like names, ratings, reviews, and service options. It’s built for developers and data teams who need scalable local data collection with proxy rotation support to bypass rate limits and avoid blocks.

Features

  • Rotating proxy support. Bypass IP bans and rate limits with residential proxies.

  • Business data extraction. Extract names, ratings, reviews, and service options.

  • Location targeting. Scrape Google Maps results for any city or region.

  • Dynamic content handling. Use Selenium to load JavaScript-rendered pages.

  • HTML parsing. Clean and structure scraped data with BeautifulSoup.

  • CSV export. Save extracted business data to a local CSV file.

Installation

  1. Clone the repository. Run the following command in your terminal to install and navigate to the project folder:
git clone https://github.com/Decodo/google-maps-scraper.git
cd google-maps-scraper
  1. Install dependencies. Make sure you have Python 3.8+ installed, then run:
pip install selenium selenium-wire webdriver-manager beautifulsoup4

Usage examples

  1. Run the scraper with proxy rotation. This script is ready to run out of the box. Just plug in your proxy credentials and update file paths:
python google-maps-scraper.py

By default, it will:

  • Visit Google Maps with the query "falafel in London"
  • Accept cookies
  • Scroll to load more results
  • Parse the page
  • Save business data to a local CSV file
  1. Customize the search query. Run your own query by updating this line in the script:
url = "https://www.google.com/maps/search/falafel+in+london/"

Sample output

image

Proxies

This script required proxies to run and overcome limitations that appear when making frequent requests. You can get reliable residential proxies from Decodo and access over 115+ residential IPs with fast response times and high success rates.

Start your free 3-day trial

Read more

A detailed guide on how the script works can be found on our website.

Related repositories

Google News scraper

Python scraper tutorial

Selenium integration