A GeoIP lookup implementation.
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 ip
example:
$ lookup_cli.py 123.123.123.123
IP :123.123.123.123
Country :**
Country Code :CN
ISP :
This product includes GeoLite data created by MaxMind, under the Creative Commons Attribution-ShareAlike 3.0 Unported License.