A small example package
Project description
Google Maps Business Scraper
Scrape business listings from Google Maps. Export to CSV.
Install
pip install -e .
playwright install chromium
cp .env.example .env
Usage
# single type
python cli.py --type "restaurant" --location "Chennai" --limit 100
# multiple types
python cli.py --types "pharmacy,gym" --location "Mumbai" --limit 50
# area sweep (no type)
python cli.py --location "Chennai" --radius-km 5
# export CSV
python cli.py --type "restaurant" --location "Chennai" --export csv --output results.csv
# no-website leads
python cli.py --no-website --location "Chennai"
Python API
from maps_scraper import scrape, no_website
scrape(type="restaurant", location="Chennai", limit=100)
scrape(types=["pharmacy", "gym"], location="Mumbai", limit=50)
scrape(location="Chennai", radius_km=5)
no_website(location="Chennai")
Config (.env)
SCRAPER_MIN_DELAY=2
SCRAPER_MAX_DELAY=7
SCRAPER_HEADLESS=false
PROXY_URL=
Output fields
name, address, phone, website, rating, review_count, price_range, category_tags, hours, is_open_now, latitude, longitude, source_url
Project details
Release history Release notifications | RSS feed
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 business_scraper-0.1.0.tar.gz.
File metadata
- Download URL: business_scraper-0.1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41041c5d706445c0f51d713a39d5ff5408269bcfa64ed8ac4f61497d178252c8
|
|
| MD5 |
22982b85448ba351c72d972505ef5713
|
|
| BLAKE2b-256 |
0bfbd5d09c567bf3369232be4f9d1b7edb3906eb5d25c75d74c4de53cc297ebe
|
File details
Details for the file business_scraper-0.1.0-py3-none-any.whl.
File metadata
- Download URL: business_scraper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb9ff377e8f377a6027a34e843cb3275efcc496ba309690f186156bc3e18f4b4
|
|
| MD5 |
a68e3fe45bbfd2e2bc4bc578295e9a46
|
|
| BLAKE2b-256 |
9bf89b11996370d3d4ee523a9485b8cab934965d7af823c6c07823e2302e8075
|