This tool allows you to geolocate IP addresses and store the results in a CSV file. It uses the ipinfo.io API to retrieve the geolocation data.
Transparency: Most of this app was created with AI assistance, as I seek to find solutions to my problems in creative ways. After finding use of such a tool, it is only fair to share it with others who may benefit in the same way.
- Create a CSV file called
ip_addresses.csv
and populate it with the IP addresses you want to get information on. - Run the script
iptool.py
and provide your ipinfo.io API key when prompted. If you don't have an API key, you can sign up for a free one on the ipinfo.io website. - The script will create a new CSV file called
ip_info.csv
and store the information for each IP address in this file.
The iptool.py
script performs the following steps:
- Reads the IP addresses from the
ip_addresses.csv
file. - Uses the ipinfo.io API to retrieve the geolocation data for each IP address.
- Stores the data in a new CSV file called
ip_info.csv
.
The iptool.py
script requires the following dependencies:
- Python 3.x
- requests library (
pip install requests
)
To use the iptool.py
script, follow these steps:
- Clone the repository to your local machine.
- Install the dependency by running
pip install requests
in the project directory. - Create a CSV file called
ip_addresses.csv
and populate it with the IP addresses you want to get information on. - Run the script
iptool.py
by runningpython iptool.py
in the project directory. - When prompted, enter your ipinfo.io API key. If you don't have an API key, you can sign up for a free one on the ipinfo.io website.
- The script will create a new CSV file called
ip_info.csv
and store the geolocation data for each IP address in this file.
I am not responsible for actions which lead to legal troubles. This is for educational and informational, law abiding use only.
Feel like this has been useful? Donate toward my latest projects. https://www.poof.io/tip/@davidinfosec