ANN: ip2cc - country from IP resolution

Denis S. Otkidach ods at fep.ru
Mon Aug 12 11:00:28 EDT 2002


                                 ip2cc

WHAT IS IT

If you want to gather web statistics by countries (not by top-level
domains) or implement targeting, here is solution: ip2cc.  This module
allows to resolve country from IP address.

USAGE

ip2cc.py -update        bild/update database
ip2cc.py <address>      print country name for which
                        <address> is registered
For example:
$ ./ip2cc.py python.org
python.org (194.109.137.226) is located in NETHERLANDS
$ ./ip2cc.py google.com.ru
google.com.ru (216.239.33.100) is located in UNITED STATES

Module can be used as CGI, try it at http://195.230.86.230/ip2cc

WHERE TO GET

http://cvs.sf.net/cgi-bin/viewcvs.cgi/ppa/misc/ip2cc.py?rev=HEAD&content-type=text/vnd.viewcvs-markup

LICENSE

Python-style

-- 
Denis S. Otkidach
http://www.python.ru/      [ru]
http://diveinto.python.ru/ [ru]





More information about the Python-list mailing list