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.
Install the python libraries using pip3:
pip3 install requests pip3 install simplekml pip3 install csv
Run the script
chmod +x locateIPs.py ./locateIPs.py
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.