A Python script uses Playwright to scrape Google Maps search results and export business details to CSV.
Overview
Google Maps Scrapper is a Python tool that drives a Chromium-based browser through Playwright to collect structured information from Google Maps business listings. It targets fields such as name, address, website, phone number, reviews, and related listing metadata.
Beyond basic contact fields, the scraper can pull review counts and average ratings, infer shopping or delivery options where the listing exposes them, read operating hours, and capture introductory text when present. Results are cleaned to drop redundant columns and written to a CSV file for further analysis or import elsewhere.
You run it from the command line with a search phrase, a limit on how many listings to collect, and an output path. An optional append mode adds new rows without overwriting an existing file. The browser runs in a visible window rather than headless mode, and progress is printed while scraping runs.
The maintainers note that Google Maps page structure can change and may require selector updates, and that heavy use in a short period risks blocks from Google. A separate branch is offered when Linux-specific fixes are needed.
Key features
- Playwright browser automation
- Business contact field extraction
- Review count and rating capture
- Operating hours and intro text
- Service option detection
- CSV export with append mode
Use cases
- Collecting local business leads
- Building directories from map search
- Market research from listings