Sort by domain name?

js ebgssth at gmail.com
Mon Oct 2 18:19:42 CEST 2006


On 2 Oct 2006 08:56:09 -0700, bearophileHUGS at lycos.com
<bearophileHUGS at lycos.com> wrote:
> js:
> > All I want to do is to sort out a list of url by companyname,
> > like oreilly, ask, skype, amazon, google and so on, to find out
> > how many company's url the list contain.
>
> Then if you can define a good enough list of such company names, you
> can just do a search of such names inside each url.
> Maybe you can use string method, or a RE, or create a big string with
> all the company names and perform a longest common subsequence search
> using the stdlib function.

well, I think list is so large that that's impossible to
create such a good company-list.



More information about the Python-list mailing list