Skip to main content

Interactive Google Maps scraper with Tkinter confirmation

Project description

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
  • Custom fields: define required * or optional fields in your dialog
  • Repeatable picks: after each capture, you’re asked “Keep going?”
  • 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)
# => { "Central Park": { "latitude": "...", "longitude": "...", ... } }

With search term

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)

In the confirmation dialog box:

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

API Reference

  • get_google_map_details(additional_required=None, additional_optional=None)
    Starts a headful Chrome session, opens maps.google.com, and watches for your place selections. Returns a dict keyed by place name, with all fields you confirmed.

License

MIT © Kanad Rishiraj (RoamingSaint)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gmaps_scraper-0.4.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gmaps_scraper-0.4.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file gmaps_scraper-0.4.1.tar.gz.

File metadata

  • Download URL: gmaps_scraper-0.4.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for gmaps_scraper-0.4.1.tar.gz
Algorithm Hash digest
SHA256 54f95feb6774f71ae6f4e7c6a997c9c518b1362d175ef7a15942dc231cff760b
MD5 de7c3eeea94c9dba4d473f004f783e20
BLAKE2b-256 243c9d9ea9fefb298498843a3c2095bced69e34c5ee8a1c4641c2f2062890701

See more details on using hashes here.

File details

Details for the file gmaps_scraper-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: gmaps_scraper-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for gmaps_scraper-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c5ec14528942b7f5e4745f4c8626660e1ebfd99430e08c882c28acb34d57cd0
MD5 2718b9180ac8c3d7f0ffcc602e3c4f2d
BLAKE2b-256 f47c8642169682620fa44aa4d634663141116830ac009bc322eaf95639354ced

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page