Skip to content

Google Map Scraper is a command-line tool to extract business data from Google Maps using a keyword and location list. It scrapes both business links and detailed profiles (e.g., address, contact info), saving them in CSV format for easy access. Ideal for gathering business data for research or marketing.

License

Notifications You must be signed in to change notification settings

1MochaChan1/google-map-scraper

Repository files navigation

Create a folder name data in your working directory first.

Command-Line Usage

1. Scraping Business Links

python script_name.py --keyword "your business keyword" -l
  • This command scrapes links of businesses based on your keyword and stores them in:
    data/links/{keyword}.csv
    

2. Scraping Detailed Business Data

python script_name.py --keyword "your business keyword" -r
  • This command uses the links from data/links/{keyword}.csv to scrape detailed business information and saves it in:
    data/{keyword}.csv
    

3. Folder Structure and Data Usage

  • data/links/: Stores the business profile links in a CSV files.
    • Example: data/links/Real Estate Firms.csv
  • data/: Stores the detailed scraped data.
    • Example: data/Real Estate Firms.csv

4. Running Both Steps Together

First, scrape links:

python script_name.py --keyword "plumbers" -l

Then, scrape details using the saved links:

python script_name.py --keyword "plumbers" -r

Results

screencapture-docs-google-spreadsheets-d-1AezDC9mLEjPMWdDLsbyYEdUzc5ylrMxcNFWrNVf3Q8Q-edit-2024-09-15-20_31_05

About

Google Map Scraper is a command-line tool to extract business data from Google Maps using a keyword and location list. It scrapes both business links and detailed profiles (e.g., address, contact info), saving them in CSV format for easy access. Ideal for gathering business data for research or marketing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published