Skip to main content

Find nearby auto insurance agents and dump them to a CSV file.

Project description

agent-finder

Find nearby auto insurance agents using the Google Maps Places API, and dump them to a CSV file.

This script was written to help automate part of my girlfriends job. Maybe someone else will find it useful too.

Setup

Python

You should have Python 3.7.5 or newer installed.

Google Maps API

You must have a valid Google Maps API key.

In your shell configuration file (.zshrc, .bash_profile, .bashrc, etc):

export GOOGLE_MAPS_API_KEY=<your-api-key>

You also need to install googlemaps.

pip3 install googlemaps

Usage

Basic search:

python3 agent-finder.py "Los Angeles, CA"

You can also customize the CSV filename and the search radius (units = kilometers).

python3 agent-finder.py "Los Angeles, CA" --filename foo.csv --radius 50

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

agent-finder-masterjefferson-0.2.tar.gz (3.2 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page