Skip to content
Projetos

georgekhananaev/google-reviews-scraper-pro

Ver no GitHub

Sobre

A powerful Google Maps review scraper that works in 2026. Extracts multi-language reviews with images, handles MongoDB integration, and bypasses detection. Features incremental scraping, image downloading, and URL replacement. Perfect for businesses monitoring their own reviews.

Dados e análise

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
+1
em 15 dias
+2
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Google Reviews Scraper Pro (2026)

Google Reviews Scraper Pro Python License CI Last Update

FINALLY! A scraper that ACTUALLY WORKS in 2026! While others break with every Google update, this bad boy keeps on trucking. Say goodbye to the frustration of constantly broken scrapers and hello to a beast that rips through Google's defenses like a hot knife through butter. Multi-business support, SQLite database, MongoDB sync, S3 uploads, and a full CLI toolkit — all in one battle-tested, rock-solid package.

Quick Start (60 Seconds)

git clone https://github.com/georgekhananaev/google-reviews-scraper-pro.git
cd google-reviews-scraper-pro
pip install -r requirements.txt
python start.py --url "https://maps.app.goo.gl/YOUR_PLACE"

That's it. Reviews land in reviews.db and google_reviews.json, photos in review_images/. You need Python 3.10+ and Chrome. Rather not install anything? Run it in Docker.

Only 5 reviews came back? That's Google's cap for signed-out browsers, and Signed-In Mode gets past it.

Contents

Feature Artillery

  • Bulletproof in 2026: While the competition falls apart, we've cracked Google's latest tricks. Google locked direct place URLs behind a "limited view" in Feb 2026? We route around it via search-based navigation. Google now caps signed-out browsers at the first 5 reviews? We catch it, tell you straight, and let you scrape signed in.
  • Signed-In Mode: Point the scraper at a Chrome profile signed in to a throwaway Google account (browser_profile_dir) and blow past the 5-review wall. The login stays in that folder: never logged, never handed to the image downloader.
  • No Silent Failures: Wrong tab? Capped list? Sort button missing? The scraper checks it's really on the Reviews tab, never clicks random buttons, and marks capped runs limited with a loud INCOMPLETE warning instead of pretending all is well.
  • Multi-Business Madness: Scrape multiple businesses in one run with per-business config overrides. One config to rule them all.
  • SQLite Fortress: Primary storage with full audit history, change detection, and per-place isolation. Your data ain't going anywhere.
  • MongoDB Sync: Incremental sync — only changed reviews are pushed, unchanged reviews are skipped. Because why waste bandwidth?
  • S3-Compatible Cloud Storage: Auto-upload images to AWS S3, Cloudflare R2, MinIO, or any S3-compatible bucket with per-business folder structure. Cloud-native, baby!
  • CLI Toolkit: Export, import, hide/restore reviews, prune history, view stats, tail logs — all from the command line like a true hacker
  • Enhanced SeleniumBase UC Mode: Superior anti-detection with automatic Chrome/ChromeDriver version matching — no more version headaches!
  • Polyglot Powerhouse: Devours reviews in a smorgasbord of languages — English, Hebrew, Thai, German, you name it! 25+ languages!
  • Aggressive Image Capture: Multi-threaded downloading that would make NASA jealous. Snags EVERY damn photo from reviews and profiles, organized per-business.
  • REST API Server: Trigger scraping jobs via HTTP endpoints with background processing
  • Change Detection on Steroids: Tracks new, updated, restored, and unchanged reviews per scrape session
  • Audit History: Every change logged with old/new values, timestamps, and session IDs. We don't miss a thing.
  • Time-Bending Magic: Transforms Google's vague "2 weeks ago" garbage into precise ISO timestamps
  • Battle-Hardened Resilience: Network hiccups? Google's tricks? HAH! We eat those for breakfast
  • Structured Logging: Rich colored CLI output + rotating JSON log files in logs/. Filter and follow logs via python start.py logs
  • Date-Range Filtering: Scrape only reviews within a window — --after 2025-06-01 --before 2025-09-30. Early-stop mode (when sorted newest) bails out the moment we hit older reviews. Not a second wasted.
  • Sub-Rating Capture: Hotels & restaurants get per-category scores (Service, Food, Cleanliness, Rooms, etc.) in 10+ languages. Unknown categories land in _other — no data dropped.
  • Indestructible Scraping: Chrome crash? CAPTCHA? Rate limit? The scraper probes the driver every scroll, flushes partial data, retries with a fresh browser. Your scrape doesn't die — it reboots.
  • Selector Health Telemetry: We log every selector hit/miss into SQLite. python start.py selector-health spots Google DOM changes before they become support tickets.

Battle Station Requirements

Python 3.10+ (don't even try with 3.9, seriously)
Chrome browser (the fresher the better)

Optional (but c'mon, live a little):

  • MongoDB (for syncing reviews to a MongoDB collection)
  • AWS S3 / Cloudflare R2 / MinIO / any S3-compatible storage (for cloud image storage)
  • Coffee (mandatory for watching thousands of reviews roll in)

Deployment Instructions

  1. Grab the source code:
git clone https://github.com/georgekhananaev/google-reviews-scraper-pro.git
cd google-reviews-scraper-pro
  1. Arm your environment:
pip install -r requirements.txt
# Pro tip: Use a virtual env unless you enjoy dependency hell
  1. Make sure this sucker works:
cp config.sample.yaml config.yaml
# Edit config.yaml — set your business URLs
python start.py
# If reviews start flowing, you're golden. If not, check your config!

The SQLite database (reviews.db) is created automatically on first run.

Or Run It in Docker

No Python or Chrome on your machine? The image brings its own Chromium, on Intel/AMD and on ARM (Apple Silicon, Raspberry Pi):

docker build -t google-reviews-scraper-pro .
mkdir -p data
docker run --rm --shm-size=1g -v "$PWD/data:/data" google-reviews-scraper-pro \
  --url "https://maps.app.goo.gl/YOUR_PLACE"

Everything lands in ./data: reviews.db, review_images/, logs/ and the JSON export. Drop your config.yaml in there too and the scraper picks it up. Anything after the image name is passed to start.py, so export, db-stats and friends work the same way.

Tagged releases are also published to ghcr.io/georgekhananaev/google-reviews-scraper-pro, so you can skip the build and docker run that name instead.

Want the API server and MongoDB as well? docker-compose.yml wires them up:

mkdir -p data
docker compose up -d api                              # API on http://localhost:8000/docs
docker compose run --rm scraper --url "https://maps.app.goo.gl/YOUR_PLACE"

To sync into that MongoDB, set use_mongodb: true and mongodb.uri: "mongodb://mongo:27017" in data/config.yaml.

Good to know:

  • Keep --shm-size=1g. Chrome crashes on long review lists with Docker's default of 64 MB.
  • The container runs signed out, so Google's 5-review wall (see Signed-In Mode) applies. The one-time browser-login needs a visible Chrome window, which a container doesn't have, so use the local install when you need full review lists.
  • On a Linux host the container writes to ./data as user ID 1000. If your own ID is different (id -u tells you), add --user "$(id -u):$(id -g)" to docker run and the files are yours. Create data yourself as shown above; if Docker creates it, it belongs to root.
  • docker run --rm --entrypoint python google-reviews-scraper-pro /app/docker/check_chrome.py checks that Chrome starts in the container, without touching Google.

Fine-Tuning Your Beast

Look, this isn't some one-size-fits-all garbage. You've got full control over every aspect.

Minimal Config

headless: true
sort_by: "newest"
db_path: "reviews.db"

businesses:
  - url: "https://maps.app.goo.gl/YOUR_PLACE"
    custom_params:
      company: "My Business"

Multi-Business with Shared Settings

Global settings serve as defaults. Each business inherits them automatically:

# Global defaults
headless: true
sort_by: "newest"
use_mongodb: true
mongodb:
  uri: "mongodb://localhost:27017"
  database: "reviews"
  collection: "google_reviews"

businesses:
  - url: "https://maps.app.goo.gl/PLACE_1"
    custom_params:
      company: "Hotel Sunrise"
  - url: "https://maps.app.goo.gl/PLACE_2"
    custom_params:
      company: "Hotel Moonlight"

Per-Business Overrides

Each business can override any global setting — different MongoDB servers, S3 buckets, or image settings per business. Go nuts:

# Global defaults
use_mongodb: true
mongodb:
  uri: "mongodb://localhost:27017"
  database: "reviews"
  collection: "google_reviews"

businesses:
  - url: "https://maps.app.goo.gl/PLACE_1"
    custom_params:
      company: "Client A"
    mongodb:
      uri: "mongodb://server-a:27017"
      database: "client_a"

  - url: "https://maps.app.goo.gl/PLACE_2"
    custom_params:
      company: "Client B"
    mongodb:
      uri: "mongodb://server-b:27017"
      database: "client_b"
    s3:
      bucket_name: "client-b-bucket"

See config.sample.yaml for all available settings and config.businesses.sample.yaml for detailed multi-business examples.

All Configuration Options

Section Key Default Description
Scraper headless true Run Chrome without visible window
sort_by "newest" newest, highest, lowest, relevance
scrape_mode "update" new_only, update, or full
stop_threshold 3 Consecutive fully-matched scroll batches before stopping (0 = disabled)
max_reviews 0 Max reviews to look at per run, already-stored ones included: "check the newest N" (0 = unlimited)
max_scroll_attempts 50 Max scroll iterations
scroll_idle_limit 15 Max idle iterations with zero new cards
browser_profile_dir "" Chrome profile folder signed in to Google (empty = fresh incognito window). See Signed-In Mode
Database db_path "reviews.db" SQLite database path (auto-created)
Processing convert_dates true Convert relative dates to ISO format
Images download_images true Download review/profile images
image_dir "review_images" Base directory (stored as {image_dir}/{place_id}/, with : in the ID replaced by _ so it works on Windows)
download_threads 4 Parallel download threads
max_width 1200 Max image width
max_height 1200 Max image height
MongoDB use_mongodb false Enable MongoDB sync
mongodb.uri "mongodb://localhost:27017" Connection string
mongodb.database "reviews" Database name
mongodb.collection "google_reviews" Collection name
mongodb.tls_allow_invalid_certs false Allow self-signed TLS certificates
S3-Compatible use_s3 false Enable S3-compatible upload (AWS S3, R2, MinIO, etc.)
s3.provider "aws" Provider preset: aws, minio, or r2 (applies sensible defaults)
s3.bucket_name "" Bucket name
s3.prefix "google_reviews/" Key prefix (stored as {prefix}/{place_id}/)
s3.region_name "us-east-1" Region (or "auto" for R2)
s3.endpoint_url null Custom endpoint for R2/MinIO (leave empty for AWS)
s3.path_style false Path-style addressing (MinIO requires true)
s3.acl "public-read" ACL for uploads (empty string = skip ACL entirely)
s3.delete_local_after_upload false Remove local files after upload
Output custom_params {} Extra fields added to every review document, e.g. {"company": "Acme"}
URL Replacement replace_urls false Replace Google URLs with custom CDN URLs
custom_url_base "" Base URL for replacements
preserve_original_urls true Keep originals in original_* fields
Logging log_level "INFO" DEBUG, INFO, WARNING, ERROR, CRITICAL
log_dir "logs" Directory for rotating JSON log files
log_file "scraper.log" Log file name (inside log_dir)
JSON backup_to_json true Export JSON snapshot after each scrape
json_path "google_reviews.json" Output file path
Date Filter date_filter.after "" ISO date; keep only reviews on/after this (disabled if empty)
date_filter.before "" ISO date; keep only reviews on/before this
date_filter.mode "post_filter" post_filter (applies at write time) or early_stop (quits scrolling when sorted newest)
date_filter.on_unparseable_date "include" include or exclude — what to do with review dates the parser couldn't understand
Resilience resilience.retry_on_session_death 1 Retries with a fresh driver when Chrome crashes mid-scrape
resilience.retry_backoff_base_seconds 3 Exponential backoff base (3s → 9s → 27s)
resilience.rate_limit_cooldown_seconds 60 Sleep duration when Google shows /sorry/ or a CAPTCHA
Health Probe health.synthetic_url "" Place URL used by python start.py health to verify end-to-end scraping
Audit audit.retention_days 90 API audit log rows older than this get pruned on API server startup
Adaptive adaptive.tab_detection_threshold 1.5 Lower = looser tab-matching; 0.0 reverts to pre-v1.2.2 behavior

Signed-In Mode (Getting Past the 5-Review Wall)

Since autumn 2026 Google often shows signed-out browsers only the first 5 reviews of a place, followed by a "See more reviews (N)" button that just opens a sign-in dialog. No amount of scrolling gets past that. The scraper spots it, stops right away and tells you straight:

WARNING  INCOMPLETE: Google showed only 5 of about 746 reviews (limited view for signed-out browsers);
         set browser_profile_dir to scrape signed in (see README)

The session is stored as limited, API jobs carry a warning, and /health/scrape reports degraded. The way past the wall is to scrape signed in:

  1. Pick a folder outside the repo and put it in config.yaml:
    browser_profile_dir: "~/.google-reviews-scraper/browser-profile"
    
  2. Sign that profile in to Google:
    python start.py browser-login
    
    A normal Chrome window opens on Google's sign-in page. Sign in, then quit that Chrome completely (Cmd+Q on macOS). The command tells you whether the sign-in stuck.
  3. Scrape as usual. The log says Browser profile is signed in to Google, or warns you when the login has expired (run browser-login again). python start.py browser-login --check checks without opening Chrome.

Sign-ins expire now and then, so let your monitoring catch it: /health/scrape reports browser_profile (signed_in, signed_out, unknown while Chrome holds the profile, or not_configured) and drops to degraded when it's signed_out; python start.py health prints the same and says DEGRADED. A capped run's INCOMPLETE warning also tells you whether the profile needs a fresh browser-login.

Keep runs modest. A signed-in scrape reads as that account. scrape_mode: "update" with stop_threshold: 3 only fetches new reviews and stops once it reaches stored ones; add max_reviews (e.g. 200) as a per-run cap.

Keep your account safe:

  • Use a Google account made just for this, never your personal or business account. Google may flag or lock accounts that scrape.
  • The profile folder is that account's login. Don't commit it, share it, sync it or bake it into a Docker image. It's created owner-only (chmod 700), and the usual names (browser_profile/, chrome_profile/, …) are gitignored in case it ends up inside the repo anyway.
  • The scraper only ever logs "signed in" or "not signed in", never the account name, email or cookies, and Google's sign-in cookies are never passed to the image downloader.
  • If that account has reviewed a place itself, its review shows up in the data like any other public review.
  • Chrome locks a profile while it's open, so scrapes sharing one profile take turns (API jobs queue up for it).

Unleashing Hell

Battle-Tested Recipes

# The basics — just run it
python start.py
# Boom. That's it. Now go grab a coffee while the magic happens.

# Override URL from command line
python start.py --url "https://maps.app.goo.gl/YOUR_URL"

# Stealth Mode + Fresh Stuff First (perfect for cron jobs)
python start.py -q --sort newest --stop-threshold 5
# They'll never see you coming.

# Only insert new reviews (skip existing — why waste CPU cycles?)
python start.py --scrape-mode new_only -q

# Force full rescan of all reviews (the nuclear option)
python start.py --scrape-mode full -q

# Custom Tags Galore — brand these puppies however you want
python start.py --custom-params '{"company":"Hotel California","location":"Los Angeles"}'

# Date-range filter — only reviews from a specific window
python start.py --after 2025-06-01 --before 2025-09-30

# Same, but stop scrolling as soon as we hit older reviews (requires newest sort)
python start.py --after 2025-06-01 --date-mode early_stop --sort newest

Export Reviews

# Export all reviews as JSON
python start.py export

# Export as CSV
python start.py export --format csv

# Export specific business
python start.py export --place-id "0x305037cbd917b293:0"

# Export to specific file
python start.py export -o my_reviews.json

# Include soft-deleted reviews
python start.py export --include-deleted

Database Management

# Show database statistics (review counts, places, sessions)
python start.py db-stats

# Clear all data for a specific place
python start.py clear --place-id "0x305037cbd917b293:0" --confirm

# Clear entire database
python start.py clear --confirm

# Checkpoint WAL + reclaim space
python start.py db-vacuum

Health & Telemetry

# Synthetic scraper health probe (single-review scrape against a place);
# also reports whether browser_profile_dir is still signed in to Google
python start.py health --url "https://maps.app.goo.gl/YOUR_URL"

# Selector hit-rate across recent scrape sessions — detects DOM drift
python start.py selector-health --sessions 30

Review Management

# Soft-delete a review (hide from exports)
python start.py hide REVIEW_ID PLACE_ID

# Restore a soft-deleted review
python start.py restore REVIEW_ID PLACE_ID

Logs

# View last 50 log entries (structured JSON)
python start.py logs

# Show last 100 entries, filter by level
python start.py logs --lines 100 --level ERROR

# Follow log output in real-time (like tail -f)
python start.py logs --follow

History & Sync

# Show sync checkpoint status
python start.py sync-status

# Prune audit history older than 90 days (dry run)
python start.py prune-history --dry-run

# Actually prune
python start.py prune-history --older-than 90

Data Migration

# Import from existing JSON file
python start.py migrate --source json --json-path google_reviews.json

# Import from MongoDB
python start.py migrate --source mongodb

# Associate imported data with a specific place URL
python start.py migrate --source json --json-path reviews.json --place-url "https://maps.app.goo.gl/YOUR_URL"

API Server Mode

Want to trigger scraping jobs via REST API? We've got you covered:

python api_server.py
# Server runs on http://localhost:8000
# Interactive docs: http://localhost:8000/docs

Endpoints are organized into 5 tagged groups (visible in /docs):

System

# Health check (no auth)
curl http://localhost:8000/

# Scraper health probe — status, counts of empty/degraded/limited sessions (last 24h)
# and browser_profile (signed_in / signed_out / unknown / not_configured)
curl -H "X-API-Key: grs_your_key_here" http://localhost:8000/health/scrape

# Database statistics (places, reviews, sessions, db size)
curl -H "X-API-Key: grs_your_key_here" http://localhost:8000/db-stats

# Manual job cleanup
curl -X POST -H "X-API-Key: grs_your_key_here" "http://localhost:8000/cleanup?max_age_hours=24"

Jobs

# Start a scraping job
curl -X POST "http://localhost:8000/scrape" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: grs_your_key_here" \
  -d '{"url": "https://maps.app.goo.gl/YOUR_URL", "headless": true}'

# Start a scraping job with a date-range filter (v1.2.2+)
curl -X POST "http://localhost:8000/scrape" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: grs_your_key_here" \
  -d '{
    "url": "https://maps.app.goo.gl/YOUR_URL",
    "date_filter": {
      "after": "2025-06-01",
      "before": "2025-09-30",
      "mode": "post_filter"
    }
  }'

# List all jobs (with optional status filter)
curl -H "X-API-Key: grs_your_key_here" "http://localhost:8000/jobs"

# Check job status (includes place_id, reviews_count and images_count once the scrape
# finishes, plus a warning if Google capped the review list)
curl -H "X-API-Key: grs_your_key_here" "http://localhost:8000/jobs/{job_id}"

# Start a pending job manually
curl -X POST -H "X-API-Key: grs_your_key_here" "http://localhost:8000/jobs/{job_id}/start"

# Cancel a running job
curl -X POST -H "X-API-Key: grs_your_key_here" "http://localhost:8000/jobs/{job_id}/cancel"

# Delete a completed/failed/cancelled job
curl -X DELETE -H "X-API-Key: grs_your_key_here" "http://localhost:8000/jobs/{job_id}"

Places

# List all places
curl -H "X-API-Key: grs_your_key_here" http://localhost:8000/places

# Get a specific place
curl -H "X-API-Key: grs_your_key_here" "http://localhost:8000/places/{place_id}"

Reviews

# Paginated reviews for a place
curl -H "X-API-Key: grs_your_key_here" "http://localhost:8000/reviews/{place_id}?limit=10&offset=0"

# Get a single review
curl -H "X-API-Key: grs_your_key_here" "http://localhost:8000/reviews/{place_id}/{review_id}"

# Get review change history
curl -H "X-API-Key: grs_your_key_here" "http://localhost:8000/reviews/{place_id}/{review_id}/history"

Audit Log

# Query audit log
curl -H "X-API-Key: grs_your_key_here" "http://localhost:8000/audit-log?limit=50"

# Filter by key ID
curl -H "X-API-Key: grs_your_key_here" "http://localhost:8000/audit-log?key_id=1&limit=20"

Authentication (SQLite-Managed API Keys)

API keys are managed via SQLite — hashed with SHA-256 and stored in reviews.db. Every API request is audit-logged with key ID, endpoint, response time, and client IP.

# Create a named key (prints the raw key — store it securely!)
python start.py api-key-create "production-frontend"

# List all keys with usage stats
python start.py api-key-list

# Show detailed stats + recent requests for a key
python start.py api-key-stats 1

# Revoke a key (immediate, cannot be undone)
python start.py api-key-revoke 1

# View audit log (who called what, when, how fast)
python start.py audit-log
python start.py audit-log --key-id 1 --limit 20

# Prune old audit entries
python start.py prune-audit --older-than-days 90
python start.py prune-audit --dry-run

When at least one active DB key exists, all endpoints require a valid X-API-Key header. If no keys exist, auth is disabled (open access).

CORS Configuration

Control which origins can access the API via the ALLOWED_ORIGINS environment variable:

# Allow specific origins (recommended for production)
ALLOWED_ORIGINS="https://yourdomain.com,https://admin.yourdomain.com" python api_server.py

# Allow all origins (default — credentials disabled for safety)
python api_server.py

Environment Variables

Variable Default Description
ALLOWED_ORIGINS * Comma-separated list of allowed CORS origins

Output Structure

SQLite Database

Primary storage. Reviews are isolated per place_id with full audit history:

reviews.db
├── places          — registered businesses with coordinates
├── reviews         — all review data with change tracking
├── review_history  — audit log of every change (old/new values)
├── scrape_sessions — session metadata (start, end, counts, status)
├── place_aliases   — other ids (old or alternate) that point to a place
└── schema_version  — database migration tracking

Place IDs are Google's full feature ids (0x…:0x…). Versions up to 1.2.3 stored them cut in half (0x…:0). Such a place moves to its full id automatically the next time it's scraped from the same URL (database rows and image folder included), and the old id keeps working in the API.

Session status: completed, limited (Google capped the list), empty, degraded (>30% parse errors), partial (driver crashed), rate_limited, failed (for example the Reviews tab could not be opened) or cancelled.

Images (per-business)

review_images/
├── 0x305037cbd917b293_0/     # Place ID for Business A (`:` becomes `_`)
│   ├── profiles/
│   │   └── user123.jpg
│   └── reviews/
│       └── review789.jpg
├── 0x30e29edb0244829f_0/     # Place ID for Business B
│   ├── profiles/
│   └── reviews/

S3 Bucket (per-business)

your-bucket/
├── google_reviews/
│   ├── 0x305037cbd917b293:0/
│   │   ├── profiles/
│   │   └── reviews/
│   ├── 0x30e29edb0244829f:0/
│   │   ├── profiles/
│   │   └── reviews/

Log Files

Structured JSON logs with automatic rotation:

logs/
├── scraper.log              # Current log file (JSON lines)
├── scraper.log.1            # Rotated (5MB max, 5 backups)
├── scraper.log.2
└── ...

View with: python start.py logs --lines 50 --level ERROR --follow

JSON Backup

Full snapshot exported after each scrape: google_reviews.json

MongoDB

All reviews in a single collection with place_id field for filtering:

db.google_reviews.find({ place_id: "0x305037cbd917b293:0x9b5b1c32a7f4d6e1" })

The Juicy Data Payload

Here's what you'll rip out of Google's clutches for each review (and yes, it's way more than their official API gives you):

{
  "review_id": "ChdDSUhNMG9nS0VJQ0FnSUNVck95dDlBRRAB",
  "place_id": "0x305037cbd917b293:0x9b5b1c32a7f4d6e1",
  "author": "John Smith",
  "rating": 4.0,
  "description": {
    "en": "Great place, loved the service!",
    "th": "สถานที่ยอดเยี่ยม บริการดีมาก!"
    // Multilingual gold mine - ALL languages preserved!
  },
  "likes": 3, // Yes, we even grab those useless "likes" numbers
  "user_images": [
    "https://lh5.googleusercontent.com/p/AF1QipOj..."
    // ALL review images - not just the first one like inferior scrapers
  ],
  "author_profile_url": "https://www.google.com/maps/contrib/112419...",
  "profile_picture": "https://lh3.googleusercontent.com/a-/ALV-UjX...",
  "owner_responses": {
    "en": {
      "text": "Thank you for your kind words!"
      // Yes, even those canned replies from the business owner
    }
  },
  "review_date": "2025-04-15T08:15:22+00:00",
  "created_date": "2025-04-22T14:30:45+00:00",
  "last_modified_date": "2025-04-22T14:30:45+00:00",
  "company": "Your Business Name",  // from custom_params (none by default)
  "source": "Google Maps"
  // Add whatever other fields you want - this baby is extensible
}

When Shit Hits The Fan

DEFCON Scenarios & Quick Fixes

  1. Chrome/Driver Having a Lovers' Quarrel

    • Good news! SeleniumBase handles Chrome/ChromeDriver version matching automatically
    • Update Chrome browser: Go to chrome://settings/help
    • SeleniumBase will automatically download the matching ChromeDriver — no manual intervention needed!
    • If issues persist: pip install --upgrade seleniumbase
  2. MongoDB Throwing a Tantrum

    • Double-check your connection string — typos are the #1 culprit
    • Is your IP whitelisted? MongoDB Atlas loves to block new IPs
    • Run nc -zv your-mongodb-host 27017 to check if the port's even reachable
    • Did you forget to start Mongo? sudo systemctl start mongod (Linux) or brew services start mongodb-community (Mac)
    • SSL/TLS errors? If using self-signed certs or local MongoDB, set mongodb.tls_allow_invalid_certs: true in your config.yaml
  3. "Where Are My Reviews?!" Crisis

    • Only 5 reviews and an INCOMPLETE warning? Google is capping the list for signed-out browsers. Switch on Signed-In Mode.
    • Google "Limited View" (Feb 2026): direct place URLs open a stripped-down page for signed-out users. The scraper navigates via search to get the full place page — just make sure you're on the latest version!
    • Reviews tab is not open after clicking it - stopping? The scraper refuses to scrape the wrong tab. Usually a Google layout change: run with --headless false to watch, and open an issue with the URL.
    • Make sure your URL isn't garbage — copy directly from the address bar in Google Maps
    • Not all sort options work for all businesses. Try --sort relevance if all else fails
    • Some locations have zero reviews. Yes, it happens. No, it's not the scraper's fault.
  4. Image Download Apocalypse

    • Check if Google is throttling you (likely if you've been hammering them)
    • Check file permissions on the review_images/ directory
    • Some images vanish from Google's CDN faster than your ex. Nothing we can do about that.
  5. S3/R2/MinIO Upload Chaos

    • Double-check your credentials and bucket permissions
    • For R2/MinIO: make sure endpoint_url is set correctly
    • Make sure your bucket exists and is in the specified region
    • Check if your bucket policy allows public-read for uploaded objects

Cloud Storage Setup (S3 / R2 / MinIO)

Works with any S3-compatible storage. Pick your poison:

AWS S3

use_s3: true
s3:
  provider: "aws"                # Optional — "aws" is the default
  aws_access_key_id: "YOUR_KEY"
  aws_secret_access_key: "YOUR_SECRET"
  region_name: "us-east-1"
  bucket_name: "your-bucket"
  prefix: "google_reviews/"
  delete_local_after_upload: false

Cloudflare R2

use_s3: true
s3:
  provider: "r2"                 # Sets region_name: "auto", acl: "" automatically
  aws_access_key_id: "YOUR_R2_ACCESS_KEY"
  aws_secret_access_key: "YOUR_R2_SECRET_KEY"
  bucket_name: "your-r2-bucket"
  endpoint_url: "https://YOUR_ACCOUNT_ID.r2.cloudflarestorage.com"
  s3_base_url: "https://pub-HASH.r2.dev"  # Public R2 bucket URL
  prefix: "google_reviews/"

MinIO (Self-Hosted)

use_s3: true
s3:
  provider: "minio"              # Sets path_style: true, acl: "" automatically
  aws_access_key_id: "minioadmin"
  aws_secret_access_key: "minioadmin"
  bucket_name: "reviews"
  endpoint_url: "http://localhost:9000"
  prefix: "google_reviews/"

Any S3-Compatible Provider

DigitalOcean Spaces, Backblaze B2, Wasabi, etc. — just set endpoint_url and credentials. If it speaks S3, we speak to it.

Images are organized per-business: {prefix}/{place_id}/profiles/ and {prefix}/{place_id}/reviews/

Pro Tips:

  • Cost Optimization: Enable S3 Intelligent Tiering (AWS) or use R2 for zero egress fees
  • CDN: Add CloudFront (AWS) or use R2's built-in CDN for faster global delivery
  • Self-Hosted: MinIO gives you full control — run it on a Raspberry Pi if you're feeling adventurous
  • Security: Use IAM roles instead of hardcoded keys in production
  • Monitoring: Enable access logging to track usage

Running Tests

# All tests
python -m pytest tests/ -v

# Quick unit tests only (no external services needed)
python -m pytest tests/ -v -k "not s3 and not mongodb and not seleniumbase"

CI runs the suite on Ubuntu (Python 3.10 and 3.14) and Windows (Python 3.13) for every push and pull request. The MongoDB/S3 connection tests need a local config.yaml with those services enabled and skip otherwise.

License

This project is licensed under the MIT License - see the LICENSE file for details.

FAQs From The Trenches

Q: Is scraping Google Maps reviews legal? A: Look, I'm not your lawyer. Google doesn't want you to do it. It violates their ToS. It's your business whether that scares you or not. This tool exists for "research purposes" (wink wink). Use at your own risk, hotshot.

Q: Will this still work tomorrow/next week/when Google changes stuff? A: Unlike 99% of the GitHub garbage that breaks when Google changes a CSS class, we're battle-hardened veterans of Google's interface wars. We update this beast CONSTANTLY. Google locked reviews behind a "limited view" in Feb 2026? We bypassed it the same day. Google started capping signed-out browsers at 5 reviews? We catch it and you scrape signed in. This thing adapts faster than Google can change.

Q: How do I avoid Google's ban hammer? A: Our undetected-chromedriver does the heavy lifting, but:

  • Don't be stupid greedy — set reasonable delays
  • Spread requests across IPs if you're going enterprise-level
  • Rotate user agents if you're truly paranoid
  • Consider a proxy rotation service (worth every penny)

Q: Can this handle enterprise-level scraping (10k+ reviews)? A: Damn straight. We've pulled 50k+ reviews without breaking a sweat. The SQLite + MongoDB combo isn't just for show — it's made for serious volume. Just make sure your machine has the RAM to handle it.

Q: Where does config.yaml go? A: In the repo root, next to start.py. Copy config.sample.yaml to config.yaml and edit it. In Docker it goes in the data folder you mount.

Q: I only get 5 reviews. What gives? A: Google caps signed-out browsers at the first 5 reviews of a place. Signed-In Mode gets you the rest.

Q: Can I scrape only a certain time period? A: Yes. Use --after 2025-06-01 --before 2025-09-30, or the date_filter block in config.yaml. With sort_by: newest and mode: early_stop it stops scrolling once it reaches older reviews.

Q: How exact are the review dates? A: As exact as Google lets them be. Google only shows relative dates ("2 weeks ago", "3 years ago"), so the ISO date is worked out from that. It's close for recent reviews and gets rougher with age: a review from "3 years ago" gets a date three years before the scrape. Empty dates on a non-English page mean you're on a version before 1.0.3; update and they parse in 25+ languages.

Q: Does it capture the per-category ratings on hotels and restaurants (Service, Food, Rooms)? A: Yes, since v1.2.2. They're in sub_ratings on each review.

Q: Do short links like maps.app.goo.gl/... work? A: Yes. Short links and full Google Maps place URLs both work.

Q: The scraper sits on a Google consent page and never reaches Maps. A: That's the full-page consent screen Google shows visitors from the EU. It's handled since v1.4.0, so update and you're through.

Q: I have a question, not a bug. Where do I ask? A: In Discussions (Q&A). Answers stay searchable there for the next person.

Q: I found a bug/have a killer feature idea! A: Jump on GitHub and file an issue or PR. But do your homework first — if you're reporting something already in the README, we'll roast you publicly.

Star History

If this saved you some time, a star helps other people find it.

Changelog

See CHANGELOG.md for a full history of releases and what changed.

Links


SEO Keywords

Google Maps reviews scraper, Google reviews scraper 2026, Google reviews exporter, review analysis tool, business review tool, Python web scraper, scrape Google reviews Python, MongoDB review database, SQLite review database, multilingual review scraper, Google Maps data extraction, business intelligence tool, customer feedback analysis, review data mining, Google business reviews, local SEO analysis, review image downloader, Python Selenium scraper, SeleniumBase undetected chromedriver, automated review collection, Google Maps API alternative, review monitoring tool, scrape Google reviews, Google business ratings, multi-business review scraper, Google reviews to JSON, Google reviews to CSV, Google reviews MongoDB sync, Cloudflare R2 image storage, MinIO image upload, S3 compatible storage reviews, AWS S3 review images, Google Maps review bypass, Google limited view bypass, review change detection, review audit history, headless Chrome scraper, REST API scraper, bulk Google reviews download, Google reviews backup tool, review scraping automation, Google Maps scraper no login

Explore projetos relacionados

Carregando…