Skip to content
/ ip2asn Public

Uses ip info api to return asn information from given ip address

License

Notifications You must be signed in to change notification settings

ca-leet/ip2asn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP2ASN

This script returns ASN information for a IP or list of IP Addresses using the IP Info API

Installation and Usage

Clone the repository

Run setup.sh: ./setup.sh

Activate virtual environment if setup script didnt: source ip2asn_env/bin/activate

Install dependencies: pip install -r requirements.txt

Set access token as environment variable (or supply when prompted): export IPINFO_API_KEY=apikey_here

Run! python3 ip2asn.py -l /path/to/ips.txt -o /path/to/output.txt

About

Uses ip info api to return asn information from given ip address

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published