Extracting real-domain-name (without sub-domains) from a given URL

Aahz aahz at pythoncraft.com
Tue Jan 20 23:47:20 EST 2009


In article <mailman.7098.1231835323.3487.python-list at python.org>,
S.Selvam Siva <s.selvamsiva at gmail.com> wrote:
>
>  Actually i tried with domain specific logic.Having 200 TLD like
>.com,co.in,co.uk and tried to extract the domain name.
>  But my boss want more reliable solution than this method,any way i
>will try to find some alternative solution.

http://www.dnspython.org/
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Weinberg's Second Law: If builders built buildings the way programmers wrote 
programs, then the first woodpecker that came along would destroy civilization.



More information about the Python-list mailing list