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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d3b851262f4b15e663dc9552ed45c37d812032cd7e13eb1d4d142b032f1d3d3
|
|
| MD5 |
d6c240c536e21ce6f8d096fa4dc7e01f
|
|
| BLAKE2b-256 |
08b3fe6e8bdaa17c544ff85fb854d91a36ca49905502cf9a7823cfa1167f0040
|
Provenance
The following attestation bundles were made for mapscopex-0.1.4.tar.gz:
Publisher:
publish.yml on rohdahal/geoprobe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mapscopex-0.1.4.tar.gz -
Subject digest:
3d3b851262f4b15e663dc9552ed45c37d812032cd7e13eb1d4d142b032f1d3d3 - Sigstore transparency entry: 1247664142
- Sigstore integration time:
-
Permalink:
rohdahal/geoprobe@00bb961686b921a80a14173729803e6d13bd6960 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/rohdahal
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@00bb961686b921a80a14173729803e6d13bd6960 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
763f3b38dbc9bf11bcbdefe3e030cea8923b2a2652b502b077893a8d5625b740
|
|
| MD5 |
cc8f8d72daada488a5e05ba517a9b546
|
|
| BLAKE2b-256 |
a6397dfad2c233876cc73d3d89cf9530e470f45f727a71c0d53907863e4716c4
|
Provenance
The following attestation bundles were made for mapscopex-0.1.4-py3-none-any.whl:
Publisher:
publish.yml on rohdahal/geoprobe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mapscopex-0.1.4-py3-none-any.whl -
Subject digest:
763f3b38dbc9bf11bcbdefe3e030cea8923b2a2652b502b077893a8d5625b740 - Sigstore transparency entry: 1247664145
- Sigstore integration time:
-
Permalink:
rohdahal/geoprobe@00bb961686b921a80a14173729803e6d13bd6960 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/rohdahal
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@00bb961686b921a80a14173729803e6d13bd6960 -
Trigger Event:
push
-
Statement type: