Packs / scraping-automation-public
google-maps-leads
Business leads from Google Maps via an Apify places actor: search terms + city -> places -> deduped, phone-normalized leads CSV.
Install
logicpacks pack use scraping-automation-public/google-maps-leadsget_pack scraping-automation-public/google-maps-leadsThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
- APIFY_TOKEN
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
osm-overpassapify-places - Checks: 2 in
outcome/checks.yaml - Code:
maps_input.jsonnormalize_places.pyosm_places.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Business leads from Google Maps via an Apify places actor: search terms + city -> places -> deduped, phone-normalized leads CSV.
Goal
A CSV of unique businesses (name, category, address, phone, website, rating) for a search and area, ready for outreach or a merchant directory.
Routes (free first)
osm-overpass(free):python3 code/osm_places.py --bbox <s,w,n,e> --tag shop=bakery --out places.json- OpenStreetMap data; coverage thinner than Google, no ratings; be gentle with public Overpass serversapify-places(paid):python3 ../apify-run-actor/code/apify_run.py run compass/crawler-google-places code/maps_input.json --out places.json --max-cost-usd 2- Google Maps data via an Apify actor
Steps
- Free route first:
python3 code/osm_places.py --bbox <south,west,north,east> --tag shop=bakery --out places.json(OpenStreetMap, no key; thinner coverage). Use the Apify route below only when OSM coverage is not enough. - Edit code/maps_input.json (search terms, location, max places).
- Run the places actor with the apify-run-actor pack:
lp run -- python3 ../apify-run-actor/code/apify_run.py run compass/crawler-google-places code/maps_input.json --out places.json --max-cost-usd 2. - Normalize + dedupe:
python3 code/normalize_places.py places.json leads.csv --country PK(phones to +92 form; dedupe by placeId, then phone, then name+address). - Spot-check 5 rows on Google Maps before using the list.
Edge cases
- Big cities need several narrower searches (by area) to get past per-search result caps.
- Closed or duplicate listings are common; keep
skipClosedPlacesand the dedupe. - Phone numbers from Maps are business numbers, but still keep lists private and don't bulk message them.
Don'ts
- Don't send bulk unsolicited messages or calls to the list.
- Don't publish scraped lead lists.