Skip to content

About

Reads in each IP, lookup for country, print out iso_code and country name, plus ip count per country

Topics

Resources

Stars

3 stars

Watchers

2 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

ip2Country

Uses MaxMind GeoLite2 Country free database to do bulk IP address country lookups

To run

Download GeoLite2-Country.mmdb to the local directory

pip install -r requirements.txt

python main.py ipfile.txt

Outputs

line_number, IP, iso_code, country_name

Then the count of IP addresses for each country, ordered by most common

About

Reads in each IP, lookup for country, print out iso_code and country name, plus ip count per country

Topics

Resources

Stars

3 stars

Watchers

2 watching

Forks

Contributors