[BangPypers] Country look up for an IP address

Pradeep Gowda pradeep at btbytes.com
Thu Feb 19 16:12:28 CET 2009


I'm curious.. What is the advantage of doing this over using a database?

I did this back in 2006 using a DB.
URL : http://pradeepgowda.com/programming/ip-to-country-for-pylons-comments

+PG


On Thu, Feb 19, 2009 at 5:21 AM, Chetan Nichkawde
<chetan.nichkawde at gmail.com> wrote:
> Dear BangPypers,
>
>    There was a problem posed to me to efficiently find the country for a
> given IP address. I have devised the solution for the same using splay tree.
> This could used in various places, like serving a web pages based on the
> country from which the request is coming from. The code can be downloaded
> from
>
> http://code.google.com/p/ip-country-translator/
>
> Chetan
>
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>
>


More information about the BangPypers mailing list