Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

business_scraper-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

business_scraper-0.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

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

Hashes for business_scraper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 41041c5d706445c0f51d713a39d5ff5408269bcfa64ed8ac4f61497d178252c8
MD5 22982b85448ba351c72d972505ef5713
BLAKE2b-256 0bfbd5d09c567bf3369232be4f9d1b7edb3906eb5d25c75d74c4de53cc297ebe

See more details on using hashes here.

File details

Details for the file business_scraper-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for business_scraper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb9ff377e8f377a6027a34e843cb3275efcc496ba309690f186156bc3e18f4b4
MD5 a68e3fe45bbfd2e2bc4bc578295e9a46
BLAKE2b-256 9bf89b11996370d3d4ee523a9485b8cab934965d7af823c6c07823e2302e8075

See more details on using hashes here.

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