Python command-line tool that scrapes Google Maps for business details such as name, address, site, phone, and reviews. Exports cleaned results to CSV.
Overview
Google-Maps-Scrapper is a Python script built on Playwright that automates Google Maps searches and extracts structured business information. It targets listings data: names, addresses, websites, phone numbers, review counts, ratings, and related fields.
The scraper can infer whether a business offers in-store shopping, pickup, or delivery, pull operating hours when shown, and capture introductory text when available. It cleans the collected columns and writes output to a CSV file, with an option to append new runs instead of overwriting prior exports.
You run it from the command line with arguments for search text, result count, and output path. The tool launches a visible browser window rather than a headless session. Maintainers note that Google Maps markup changes can break XPath selectors and that heavy use may trigger blocking.
Prerequisites include Python 3.8 or 3.9 and a locally installed Google Chrome or Chromium browser for Playwright. Multiple git branches exist for different library versions or Linux-focused fixes.
Key features
- Playwright-driven Maps browsing
- Business contact field extraction
- Review count and rating capture
- Service type detection
- Operating hours parsing
- Intro text when present
- Data cleansing before export
- CSV output with append mode
Use cases
- Build local business lead lists
- Export Maps search results to CSV
- Research review totals by category
- Collect hours and websites in bulk
- Append new scrape batches to one file