How soclosesociety/googlemapscraper works
Google Maps Scraper is a command-line browser-automation tool that turns a Maps query or URL into business-data CSVs. The main workflow resolves input, gathers place links by scrolling results, visits each place to extract details, and saves progress. It also supports links-only output and resuming detail extraction from a links CSV. The README documents headless operation and anti-detection behavior; sampled source shows the browser setup and extraction mechanics. The implementation is concentrated in main.py, so some relationships are supported by README documentation rather than sampled call sites.
Main entry points: main.py Collect place links
Components 13
CLI and browser
- CLI options
main.py - Input resolution
main.py - Chrome driver
main.py
Maps collection
- Collect place links
main.py - Feed scrolling
main.py - Page parsing
main.py - Extract place details
main.py - Detail scrape loop
main.py
CSV outputs
- Resume links CSV
main.py - Links CSV
- Results CSV
Other components
- CLI user
- Google Maps
Connections 16
- CLI user → CLI options: provides options
readme.md - CLI options → Input resolution: selects input
main.py - Input resolution → Collect place links: starts search
readme.md - Input resolution → Resume links CSV: selects resume file
main.py - CLI options → Chrome driver: configures mode
readme.md - Collect place links → Chrome driver: loads search
main.py - Chrome driver → Google Maps: opens pages
readme.md - Collect place links → Feed scrolling: scrolls feed
main.py - Collect place links → Page parsing: parses page source
main.py - Collect place links → Links CSV: saves links
main.py - Resume links CSV → Detail scrape loop: supplies links
main.py - Collect place links → Detail scrape loop: passes links
readme.md - Detail scrape loop → Extract place details: calls per place
main.py - Extract place details → Chrome driver: loads place page
main.py - Extract place details → Google Maps: reads place details
readme.md - Detail scrape loop → Results CSV: saves progress
main.py