Git Product home page Git Product logo

street2phone.py's Introduction

Automates usage of the Google Places API to farm local phone numbers given an address.

For more info read the related blog post.

header

Installation:

git clone https://github.com/0xAsh/street2phone.py
pip install -r requirements.txt

Usage:

usage: street2phone.py [-h] [-k APIKEY] [-i INPUTFILE] [-o OUTPUTFILE] [-a ADDRESS]

arguments:
  -h, --help            show this help message and exit
  -k APIKEY, --APIKEY APIKEY
                        Google API key. For information on how acquire one refer to: https://developers.google.com/maps/documentation/javascript/get-api-key
  -i INPUTFILE, --inputfile INPUTFILE
                        Input file containing a newline separated list of addresses
  -o OUTPUTFILE, --outputfile OUTPUTFILE
                        Name of output file containing comma-delimmited list addresses and a given phone number
  -a ADDRESS, --address ADDRESS
                        Address to convert to local phone numbers

Example output with a single address:

> python .\Street2Phone.py -k <apikey> -a "1600 Pennsylvania Ave NW, Washington, DC 20500-0003, United States"
Lookup Address: 1600 Pennsylvania Ave NW, Washington, DC 20500-0003, United States

List of nearby phone numbers:
[None, None, '(202) 456-1111', '(202) 456-1414', None, '(202) 456-1414', None, '(800) 488-3111', None, '(987) 654-3210', None, None, None, '(202) 555-0133', '(202) 456-1111', '(202) 456-1111', None, None]

Local phone number with the most common first six digits:
(202) 456-1111

Example output with a list of newline-delimited addresses:

> python .\street2phone.py -k <apikey> -i .\addresses.txt -o phonenumbers.txt
Lookup Address: 1600 Pennsylvania Ave NW, Washington, DC 20500-0003, United States


List of nearby phone numbers:
[None, None, '(202) 456-1111', '(202) 456-1414', None, '(202) 456-1414', None, '(800) 488-3111', None, '(987) 654-3210', None, None, None, '(202) 555-0133', '(202) 456-1111', '(202) 456-1111', None, None]

Local phone number with the most common first six digits:
(202) 456-1111
Lookup Address: 1313 Disneyland Dr, Anaheim, CA 92802

List of nearby phone numbers:
[None, '(714) 781-4565', '(714) 781-4565', '(714) 781-4565', '(714) 781-4565', None, '(714) 781-4636', '(714) 781-4000', None, '(888) 758-4389', '(888) 758-4389', None]

Local phone number with the most common first six digits:
(714) 781-4565

street2phone.py's People

Contributors

0xash avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.