Skip to main content

Search Google Maps listings and extract business website emails.

Project description

mapscopex

mapscopex searches Google Maps for businesses and attempts to extract email addresses from their websites.

Install

pip install mapscopex

Public API

from mapscopex import collect_searchprobe, searchprobe
  • searchprobe(keyword, location, max_items=None) streams cumulative results as they are found.
  • collect_searchprobe(keyword, location, max_items=None) waits for the scrape to finish and returns the final list once.

Usage

Streaming search

from mapscopex import searchprobe

for results_so_far in searchprobe(
    keyword="lawyers and law firm",
    location="Houston, TX",
    max_items=None,
):
    print(results_so_far[-1])

searchprobe() yields the cumulative result set each time a new business is found.

max_items=None searches until Google Maps stops yielding new businesses.

Collect final results

from mapscopex import collect_searchprobe

results = collect_searchprobe(
    keyword="lawyers and law firm",
    location="Houston, TX",
    max_items=None,
)

collect_searchprobe() waits for the search to finish and returns the final list once.

Output Shape

Each result is a dictionary with these keys:

{
    "name": str,
    "phone": str,
    "website": str,
    "emails": list[str],
}

searchprobe() yields a list of these dictionaries after each new business is added. collect_searchprobe() returns the final list once the scraper stops.

Release Notes

The current package version is 0.1.3. That is a reasonable initial public releases while the API is still settling.

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

mapscopex-0.1.3.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

mapscopex-0.1.3-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file mapscopex-0.1.3.tar.gz.

File metadata

  • Download URL: mapscopex-0.1.3.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mapscopex-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d6cfd001a61de0de2de34ec7a925d1b5c04e8fa801102ac448b87948be764235
MD5 b6b2576aeba93be951849bb463413fe5
BLAKE2b-256 57c29c7407e8955e30ed4d96edece6a984aad443ea7b58912532e50334ce3e4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mapscopex-0.1.3.tar.gz:

Publisher: publish.yml on rohdahal/geoprobe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mapscopex-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: mapscopex-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mapscopex-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0f5c7931261998f34e6bcbf24f47447395e2db731833c7fdf012743dd1724543
MD5 9495d908c4a84cbb5134bd1e3739ff88
BLAKE2b-256 98784b0d8da8a20e2d7cfbdd78fa1a5704eb672598e8726f47515736e1ff3dcc

See more details on using hashes here.

Provenance

The following attestation bundles were made for mapscopex-0.1.3-py3-none-any.whl:

Publisher: publish.yml on rohdahal/geoprobe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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