Skip to content

asanders4205/business_scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

County Business Scraper

This script searches for businesses in your specified area that don't have websites and exports them to a CSV file.

Prerequisites

  1. Python 3.7 or higher
  2. A Google Cloud Platform account with Places API enabled
  3. A Google Maps API key

Setup

  1. Install the required dependencies:
pip install -r requirements.txt
  1. Create a .env file in the project root and add your configuration:
GOOGLE_MAPS_API_KEY=your_api_key_here
LOCATION_COORDS=latitude,longitude (in a comma-delimited list / a tuple)

Usage

Run the script:

python business_scraper.py

The script will:

  1. Prompt you to enter your location (Format: County, State abbreviation)
  2. Search for businesses in your specified area
  3. Filter out businesses that have websites
  4. Export the remaining businesses to your_specified_county_businesses_no_website.csv

The CSV file will contain the following columns:

  • name: Business name
  • address: Business address
  • phone: Business phone number (if available)

Features

  • Searches within a 20-mile radius of the specified coordinates
  • Filters out:
    • Medical facilities
    • Religious institutions
    • Educational institutions
    • Government offices
    • Non-profit organizations
  • Interactive location input
  • Configurable search radius
  • Configurable maximum number of results

Notes

  • The script uses a 20-mile radius from the coordinates specified in the .env file
  • The Places API has usage limits and costs associated with it
  • Make sure your API key has the Places API enabled
  • The .env file should contain both your API key and location coordinates

About

Find local businesses with no website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages