Extract Business Leads with google-maps-scraper

An open-source tool for extracting business data from Google Maps via CLI, Web UI, or AI agents like Claude Code.

cpaua2 min232

The gosom/google-maps-scrapergithub.com/gosom/google-maps-scraper is a free open-source tool that extracts business leads, emails, phone numbers, and ratings from Google Maps. It provides multiple interfaces for data collection, including a command-line interface, a Web UI, and a REST API, making it suitable for lead generation and sales prospecting.

Integrating with AI Coding Agents

The tool can be used as a skill for AI agents such as Claude Code, Cursor, GitHub Copilot, or Codex. Users can describe the desired leads in plain language, and the agent handles search planning, validation, and monitoring of the local scrape.

To install the skill for an agent, use the following command:

bash
npx skills add gosom/google-maps-scraper

The agent workflow requires Node.js and Docker on Linux, macOS, or Windows via WSL. For large-scale crawls, users can provide proxy credentials through a masked local terminal prompt to avoid pasting sensitive data into the agent chat.

Data Extraction and Performance

The scraper extracts over 33 data points per place, including the business name, address, website URL, latitude, longitude, and the number of reviews. It can also extract email addresses directly from the business websites using the -email flag.

The system achieves a performance of approximately 120 places per minute through optimized concurrency. Users can adjust the number of parallel scrape jobs using the -c flag, with options for 4, 8, or 16 concurrent jobs depending on hardware capabilities.

Deployment and Interface Options

For users preferring a browser-based experience, the Web UI can be launched via Docker:

bash
mkdir -p gmapsdata

docker run \
 -v "$PWD/gmapsdata:/gmapsdata" \
 -p 8080:8080 \
 gosom/google-maps-scraper \
 -data-folder /gmapsdata

Developers can automate scraping through a REST API with endpoints for creating, listing, and deleting jobs, or downloading results as CSV. For multi-user environments, a self-hosted SaaS edition is available with a job queue and admin UI. This level of automation is similar to how Google's ARTEMIS tool handles Android automation.

Output Formats and Scaling

Extracted data can be saved as CSV or JSON files. For production environments, the tool supports PostgreSQL and S3 as database providers and can be deployed on Kubernetes clusters.

To prevent request limit blocks during large tasks, the tool includes built-in SOCKS5, HTTP, and HTTPS proxy rotation. Proxies can be passed via the -proxies flag or loaded from a separate credentials file using -proxies-file.

Sources

gosom/google-maps-scrapergithub.com/gosom/google-maps-scraper
Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.