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,
    "category": str,
    "address": str,
    "city": str,
    "state": str,
    "zip": 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.4. That is a reasonable initial public release 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.4.tar.gz (8.8 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.4-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mapscopex-0.1.4.tar.gz
  • Upload date:
  • Size: 8.8 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.4.tar.gz
Algorithm Hash digest
SHA256 3d3b851262f4b15e663dc9552ed45c37d812032cd7e13eb1d4d142b032f1d3d3
MD5 d6c240c536e21ce6f8d096fa4dc7e01f
BLAKE2b-256 08b3fe6e8bdaa17c544ff85fb854d91a36ca49905502cf9a7823cfa1167f0040

See more details on using hashes here.

Provenance

The following attestation bundles were made for mapscopex-0.1.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: mapscopex-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 763f3b38dbc9bf11bcbdefe3e030cea8923b2a2652b502b077893a8d5625b740
MD5 cc8f8d72daada488a5e05ba517a9b546
BLAKE2b-256 a6397dfad2c233876cc73d3d89cf9530e470f45f727a71c0d53907863e4716c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for mapscopex-0.1.4-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