/geo-IP-country

A GepIP lookup implementation.

Primary LanguagePython

geo-IP-country

A GeoIP lookup implementation.

Information

There are two parts of data this program using, one is MaxMind's free downloadable GeoIPCountryCSV, only that country names are adapted into Chinese, the other is CMCC's own IP alocation information(may not be complete).

Usage

lookup_cli.py

Usage:

    lookup_cli.py ip

example:

    $ lookup_cli.py 123.123.123.123
    IP              :123.123.123.123
    Country         :**
    Country Code    :CN
    ISP             :

lookup_web

LICENSE

This product includes GeoLite data created by MaxMind, under the Creative Commons Attribution-ShareAlike 3.0 Unported License.