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 scrapeon_missing: prompt only if any field (required or optional) is blankon_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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gmaps_scraper-0.4.4.tar.gz | 9.8 kB | Without provenance | Details for gmaps_scraper-0.4.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gmaps_scraper-0.4.4-py3-none-any.whl | Python 3 | none | any | Details for gmaps_scraper-0.4.4-py3-none-any.whl |
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
|
Security for gmaps-scraper 0.4.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.