Skip to main content

gmaps-scraper

Interactive Google Maps scraper with Tkinter confirmation

gmaps-scraper lets you visually pick locations in Google Maps and captures the place name, coordinates, address, city, state, country, plus any custom fields you specify. Each pick pops up a dialog so you can review or add extra info before recording.

Features

  • Live map interaction via Selenium & Chrome
  • Automatic extraction of:
    • Place name
    • Latitude & longitude
    • Full address
    • City, state, country (via Plus code)
    • Rating, Reviews, Category
  • Batch mode: if you supply search_terms, it will run exactly those searches and return immediately (no “Keep going?” prompt)
  • Manual mode: if you omit search_terms, after each scrape you’re asked “Keep going?”
  • Custom fields: define required * or optional fields in your dialog
  • Confirmation modes:
    • always: always prompt after each scrape
    • on_missing: prompt only if any field (required or optional) is blank
    • on_required_missing: prompt only if a required field is blank
  • Clean teardown of browser sessions

Installation

pip install gmaps-scraper

Usage

Basic pick

from gmaps_scraper import get_google_map_details

# Launch the map picker; no extra fields
data = get_google_map_details()
print(data)
# => {("40.785091","-73.968285"): {"name": "Central Park", "latitude": "...", ...}}

With search term (batch mode; no “Keep going?”)

from gmaps_scraper import get_google_map_details

data = get_google_map_details(search_terms=["Empire State Building", "Central Park"])
print(data)

With custom fields

from gmaps_scraper import get_google_map_details

data = get_google_map_details(
    additional_required=['Contact', 'Phone'],
    additional_optional=['Notes']
)
print(data)

With confirmation modes

from gmaps_scraper import get_google_map_details

# Only prompt if any field is missing
data = get_google_map_details(confirmation_mode="on_missing")
print(data)

# Only prompt if a required field is missing
data = get_google_map_details(confirmation_mode="on_required_missing")
print(data)

In the confirmation dialog box:

  • Fields ending with * are required—the dialog won’t proceed until you fill them when prompting.
  • Optional fields can be left blank.
  • Control prompts using confirmation_mode.

API Reference

get_google_map_details(
    additional_required: List[str] = None,
    additional_optional: List[str] = None,
    search_terms: List[str] | str = None,
    confirmation_mode: Literal["always", "on_missing", "on_required_missing"] = "always",
    debug: bool = False
) -> Dict[Tuple[str, str], Dict[str, str]]
  • additional_required: list of field names that must be filled before proceeding
  • additional_optional: list of field names that may be left blank
  • search_terms: term or list of terms to enter into Google Maps search bar
  • confirmation_mode: when to show the confirmation dialog; one of:
    • "always": always prompt (default)
    • "on_missing": prompt only if any field (required or optional) is blank
    • "on_required_missing": prompt only if a required field is blank
  • debug: if True, prints debug logs for URL changes and scraped values

License

MIT © Kanad Rishiraj (RoamingSaint)

Metadata

Release files for gmaps-scraper 0.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gmaps-scraper 0.4.4
File Size Uploaded
gmaps_scraper-0.4.4.tar.gz 9.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gmaps-scraper 0.4.4
File Interpreter ABI Platform
gmaps_scraper-0.4.4-py3-none-any.whl Python 3 none any Details

Total release size: 19.6 kB

Release files / gmaps_scraper-0.4.4.tar.gz

Download URL gmaps_scraper-0.4.4.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9a05ea34a3938f600c992b6bbd8386bb7090c1f462fa0160097590fd8b96c33d
BLAKE2b-256 checksum
How to use checksums
50a89659869b7f28a14592c7bf2264b1f324e829a6d44a22b04c562d84da7bdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Release files / gmaps_scraper-0.4.4-py3-none-any.whl

Download URL gmaps_scraper-0.4.4-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a4ca5706e84ebb1a0cb9bfad65eaaae95ce5f65435b5cb3fc2dc788149057c9
BLAKE2b-256 checksum
How to use checksums
b3e2bcbd4ea44d0ac90747b10a54d7b470808caa4ed0c1c8ef0ef2145a75be81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Release history Release notifications | RSS feed

This release

0.4.4 This release

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page