Metadata-Version: 2.4
Name: business_scraper
Version: 0.1.0
Summary: A small example package
Author: sarankirthic
Author-email: sarankirthic <sarankirthic@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Dist: playwright
Requires-Dist: playwright-stealth
Requires-Dist: python-dotenv
Requires-Dist: loguru
Requires-Dist: fake-useragent
Requires-Python: >=3.11
Project-URL: Homepage, https://github.com/seeedstack/business_scraper
Project-URL: Issues, https://github.com/seeedstack/business_scraper/issues
Description-Content-Type: text/markdown

# Google Maps Business Scraper

Scrape business listings from Google Maps. Export to CSV.

## Install

```bash
pip install -e .
playwright install chromium
cp .env.example .env
```

## Usage

```bash
# 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

```python
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)

```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
