This project uses the IPinfo API to fetch geolocation data for a list of IP addresses.
- Clone the repository:
git clone https://github.com/HouseOfAgile/geoip-scanner.git
cd geoip-scanner
- Install the required packages:
pip install -r requirements.txt
- Create a
token.txt
file and add your IPinfo access token:
echo 'your_ipinfo_access_token' > token.txt
- Run the script:
python geoip_scanner.py --file ip_list.txt
or
python geoip_scanner.py --ip 8.8.8.8
- Python 3.x
ipinfo
package
The script outputs the geolocation data to the console and saves it to geoip_scanner_info.csv
.