Sort by domain name?

gene tani gene.tani at gmail.com
Mon Oct 2 17:45:31 CEST 2006


Paul Rubin wrote:
> "js " <ebgssth at gmail.com> writes:
> > Here, domain name doesn't contain subdomain,
> > or should I say, domain's part of 'www', mail, news and en should be
> > excluded.
>
> It's a little more complicated, you have to treat co.uk about
> the same way as .com, and similarly for some other countries
> but not all.  For example, subdomain.companyname.de versus
> subdomain.companyname.com.au or subdomain.companyname.co.uk.
> You end up needing a table or special code to say
> how to treat various countries.

Plus, how do you order "https:", "ftp", URLs with "www.", "www2." ,
named anchors etc?

Gentle reminder: is this homework?  And you can expect better responses
if you show youve bootstrapped yourself on the problem to some extent.




More information about the Python-list mailing list