Open-source Google Maps scrapers: what it really takes

An honest look at running a free Google Maps scraper from GitHub for lead generation, covering setup, proxies, enrichment and verification, plus a simple way to find the point where a managed tool costs less per usable lead.

Updated Nov 16, 2026 · 10 min read

Desk with a laptop, a small server and a pinned paper city map, representing a self-hosted Google Maps scraper setup

A Google Maps scraper from GitHub costs nothing to download, and the better repos work well. The cost shows up later, in proxies, servers, broken runs and the hours it takes to turn raw listings into leads you can actually email.

This guide covers what a google maps scraper github project gives you, what it leaves out, and how to work out whether self-hosting is cheaper than paying per lead.

What open-source Google Maps scrapers on GitHub actually do

They automate what you would do by hand: type a search like "roofers in Tampa" into Google Maps, scroll the results and copy each listing's details. Most run a headless browser that loads Maps, scrolls the results panel and reads each place card.

The output is usually a CSV or JSON file with the business name, category, address, phone, website, rating, review count and Maps URL. Some repos also visit each business website to look for an email address.

There are plenty to choose from. GitHub's google-maps-scraping topic lists dozens of public repos, and about half of them are written in Python.

What they don't do is the lead work: deciding who owns the business, finding a personal email, checking that the email will deliver, and getting it into your outreach tool.

Popular repo types: Go binaries, Python and Playwright scripts, browser extensions

Most repos fall into one of three groups. The right one depends on how many leads you need and how comfortable you are in a terminal.

TypeHow it runsGood forWatch out for
Go binary (e.g. the gosom Google Maps scraper)Docker container or compiled binary, with CLI, web UI or REST APILarge, repeatable jobs, grid searches over a whole cityNeeds Docker or Go, proxies for volume
Python + Playwright or Selenium scriptLocal Python environment with a headless ChromeTweaking fields, small one-off runs, learningBreaks when Maps markup changes, dependency issues
Browser extensionLoaded unpacked into Chrome, scrapes the page you have openA quick list of 100-ish businessesManual scrolling, one search at a time, no enrichment

The gosom Google Maps scraper

The gosom repo is the most-starred project in the topic and is actively maintained. It's written in Go, ships Docker images for both AMD64 and ARM64, and can run as a command line tool, a local web UI or a REST API.

Useful features for lead gen include a grid mode that splits an area into cells to get past the per-search result cap, a strict grid option that drops results outside your bounding box, a proxies file setting, and email extraction from business websites. It can also collect reviews, though recent changes note that anonymous access may only return a limited sample of them.

Python scripts

A google maps scraper in Python is the easiest to read and modify. If you want an extra field, or want to write results straight into a database, you can change a few lines.

The trade-off is fragility. These scripts usually find elements by CSS class or ARIA label, so when Google changes the page, fields come back empty until someone patches the selector.

How do you set one up? Docker, command line and Claude Code

For a maintained Go project, setup can take a few minutes with Docker. For an older Python script, expect to spend some time fixing dependencies. Here is the usual path for each.

Docker and the command line

  1. Install Docker Desktop (Mac or Windows) or Docker Engine (Linux).
  2. Create a text file with one search query per line, such as plumbers in Austin TX.
  3. Pull the image and run it with your query file mounted as input and a folder mounted for output.
  4. Set depth, concurrency and whether to extract emails using the repo's flags.
  5. Open the CSV when the run finishes and check a few rows against Google Maps by hand.

Python and Playwright

  1. Clone the repo and create a virtual environment.
  2. Install requirements, then install the Playwright browsers.
  3. Edit the search term and location in the config or pass them as arguments.
  4. Run the script and watch the first few results. If fields are empty, the selectors are probably out of date.

Using Claude Code or another AI coding agent

The gosom README now recommends AI coding agents such as Claude Code, Codex, Cursor or GitHub Copilot as the easiest way in. The agent mode walks through Docker setup, proxy configuration and crawl monitoring for you.

This lowers the setup barrier a lot. It doesn't change what comes out the other end, and you're still running the infrastructure. If what you really want is to ask Claude for leads in plain English, a hosted MCP server skips the install entirely. See how to find leads from Claude with MCP.

What you get in the raw output and which lead fields are missing

Raw output is a business directory, not a lead list. You get the listing data Google shows publicly, and sometimes a generic email scraped from the homepage.

FieldTypical open-source scraperNeeded for outreach?
Business name, category, addressYesYes
Phone numberYes (usually the main line)For calling
Website URLYes, when listedYes, for enrichment
Rating and review countYesFor targeting and personalization
Generic email (info@, contact@)SometimesWeak, often unread
Owner or decision-maker nameNoYes, for personal emails
Owner's titleNoHelpful
Personal emailRarelyYes
Social profilesSome reposHelpful for multichannel
Email verification statusNoYes, before any send

Two other limits catch people out. A single Maps search tends to stop at around 120 results (here's why), so covering a city means many searches or a grid. And results often include businesses outside your niche, so you need a filtering pass.

Hidden costs: proxies, servers, CAPTCHAs, breakages and your time

The software is free, but running it at volume is not. These are the costs you'll actually pay.

Illustration of a pipeline losing leads to proxies, servers, blocks and time before reaching the end

  • Proxies. Small runs from your home connection often work. Larger or repeated runs tend to trigger rate limits or CAPTCHAs, so most people who scrape at scale pay for rotating residential proxies.
  • Servers. Headless Chrome uses a lot of memory. Running long jobs on your laptop ties it up, so many people rent a small cloud server instead.
  • CAPTCHAs and blocks. When a run gets blocked partway through, you get a partial file and have to work out where to resume.
  • Breakages. Google changes Maps regularly. Well-maintained repos ship fixes fast, but you still need to notice the problem, pull the update and re-run.
  • Your time. Setup, babysitting runs, deduplicating, cleaning columns and fixing errors. For most agency owners this is the largest line item by far.

It's also worth reading up on the rules before you scale. Our guide to whether web scraping is legal covers the main points.

Enrichment gap: finding emails, owner names and socials from each website

This is where most self-hosted setups stall. Google Maps listings don't carry email addresses (here's why), so every useful contact detail has to come from the business website.

Some scrapers grab any email-shaped string on the homepage. That gives you info@ addresses, and sometimes junk like image filenames that look like emails (a bug the gosom maintainers recently fixed). It won't tell you that the owner is Maria Lopez and her address is maria@ on the same domain.

To get owner-level data yourself, you'd typically need to:

  1. Crawl the About, Team and Contact pages, not just the homepage.
  2. Extract the person's name and title from unstructured text.
  3. Decide which name is the owner versus a front-desk employee.
  4. Pull social profile links from headers and footers.
  5. Match or guess a personal email pattern for that name.

You can script this with an LLM, but now you're paying for API calls and maintaining a second pipeline. This is the step Prospect Cheap handles out of the box: it collects live leads from Google Maps and uses AI to read each website for emails, the owner's name and title, phone numbers and social profiles. For more on doing it manually, see how to enrich a lead list.

Verifying emails and cleaning the list before outreach

Never send to scraped emails without verifying them first. High bounce rates hurt your sending domain, and scraped addresses go stale as businesses close or change staff.

A basic cleaning pass looks like this:

  1. Deduplicate by Maps place ID or phone number, since grid searches overlap.
  2. Filter out closed businesses, wrong categories and locations outside your area.
  3. Remove junk emails (image filenames, tracking addresses, placeholder text).
  4. Verify every email, and set catch-all results aside for a smaller, careful send.
  5. Flag role-based addresses like info@ so you can write to them differently.
  6. Map columns to your CRM or sending tool's fields before import.

With a self-hosted scraper, verification is a separate paid service and a separate upload. In Prospect Cheap, emails can be verified in one click on paid plans, and the list goes straight to GoHighLevel, Instantly, Smartlead or lemlist instead of through a CSV. The full process is in how to clean a lead list before outreach.

Cost per usable lead: self-hosted scraper vs a managed Google Maps lead tool

The number that matters is not cost per row scraped. It's cost per usable lead: a business in your niche with a verified email you can send to.

Use this formula:

Cost per usable lead = (proxies + server + verification + enrichment API + your hours × your hourly rate) ÷ usable leads

A worked example

The figures below are assumptions for illustration. Swap in your own quotes and your own match rates from a test run.

Say you scrape dentists across a metro area in one month:

  • 2,000 places scraped
  • 1,500 left after removing duplicates and off-niche results
  • 1,100 of those have a website
  • 600 have an email found
  • 450 pass verification

And say your monthly costs are:

  • Proxies: $50
  • Server: $10
  • Email verification: $10
  • Your time: 8 hours at $50/hour = $400

Total: $470 ÷ 450 usable leads ≈ $1.04 per usable lead, and none of those 450 have an owner name attached.

If you leave out your time, it drops to about $0.16. That gap is the whole argument. Self-hosting is cheap when your time is free or already sunk into learning, and expensive when every hour could go to selling.

Finding your break-even

  1. Run one small test with the scraper and record your real match rates at each stage.
  2. Track every hour you spend for a full month, including fixes and cleanup.
  3. Work out your cost per usable lead with the formula above.
  4. Compare it with a managed tool's cost per lead (plan price ÷ credits included) divided by its usable rate.

Prospect Cheap charges one credit per lead found, with monthly plans from $29 and 150 free credits to start. Check the pricing page for credits per plan, then run the 150 free credits on the same search to compare usable rates side by side.

When a Google Maps scraper from GitHub makes sense (and when it doesn't)

A GitHub scraper makes sense when you need raw listing data and have spare technical time. It makes less sense when you need ready-to-email owner contacts every week.

Self-hosting is a good fit if you:

  • Need listing data only, such as for market research, mapping or cold calling main lines
  • Enjoy tinkering and count the hours as learning
  • Already run servers and proxies for other projects
  • Want full control over fields, storage and scheduling

A managed tool is a better fit if you:

  • Send cold email and need owner names and personal emails
  • Bill your time at more than a few dollars an hour
  • Want verification and pushing to your sending tool built in
  • Don't want a broken scrape to stall a campaign launch
  • Want to pull leads from an AI assistant through an API or MCP server without hosting anything

Plenty of people do both: a GitHub scraper for broad market mapping, and a managed tool for the lists that actually go into campaigns.

Next steps

  1. Pick one niche and one city you'd actually sell to.
  2. Run the open-source scraper on it, and track your hours and match rates honestly.
  3. Run the same search with 150 free Prospect Cheap credits and compare usable leads.
  4. Choose the setup with the lower cost per usable lead, then put your time into the outreach.

Frequently asked questions

The official API is reliable and doesn't need proxies, but you pay per request and it returns listing data only, without owner names or personal emails. For lead generation at volume, the API bill can grow quickly. You'd still need a separate enrichment and verification step either way.

AI-powered Google Maps lead generation

Live local business leads from Google Maps — AI finds the owner, emails and socials for every one. Start with free credits.

More from Blog

See all