/ip-locator

Grap information for multiple IP Addresses including lat/long, city, state, and if the IP is owned by a VPN.

Primary LanguagePython

ip-locator

This python script generates a Google Earth file from a text file of IP Addresses. The script also generates a geo-stats.csv file with information about the IPs. IP information includes latitude, longitude, city, region, country, ISP, and if the IP belongs to a VPN provider.

Steps

Install the python libraries using pip3:

pip3 install requests
pip3 install simplekml
pip3 install csv

Run the script

chmod +x locateIPs.py
./locateIPs.py

Optional VPN and ISP Detection

Steps:

1. Register for an account on the website https://iphub.info/.
2. Generate a free API key. This will let you make 1000 requests a day.
3. Make a file called iphub-info.txt within the locateIPs.py directory.
4. Paste the API key in the file.

How-to Video

How To Video