Extracting real-domain-name (without sub-domains) from a given URL
s.selvamsiva at gmail.com
Tue Jan 13 08:46:31 CET 2009
I need to extract the domain-name from a given url(without sub-domains).
With urlparse, i am able to fetch only the domain-name(which includes the
http://feeds.huffingtonpost.com/posts/ , http://www.huffingtonpost.de/,
.... all must lead to *huffingtonpost.com or huffingtonpost.de**
Please suggest me some ideas regarding this problem.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list