Skip to content

Map an IP address to City/Country via the MaxMind GeoLite database

Notifications You must be signed in to change notification settings

artemdinaburg/ip-to-city

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

ip-to-city

Map an IP address to City/Country via the MaxMind GeoLite database

Usage

>>> $ ./ip_to_city_country.py --help
usage: ip_to_city_country.py [-h] [-d GEOIPDB] [ipfile]

Show city and country of IP addresses using MaxMind GeoIP Database

positional arguments:
    ipfile      a file from which to read IP addresses (default: stdin)

optional arguments:
    -h, --help  show this help message and exit
    -d GEOIPDB  Path to the GeoIPCity database (default: GeoLiteCity.dat)


>>> $ echo '8.8.8.8' | ./ip_to_city_country.py
8.8.8.8:US:Mountain View

About

Map an IP address to City/Country via the MaxMind GeoLite database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages