ANN: ip2cc - country from IP resolution

jason petrone jp at NOSPAMdemonseed.net
Fri Aug 16 15:23:00 EDT 2002


Doh!

I just wrote THIS EXACT SAME PROGRAM last week.

Oh well, yours looks better anyway.

Jason 

Denis S. Otkidach <ods at fep.ru> wrote:

>                                 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