You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by DS jha <ae...@gmail.com> on 2009/02/16 08:14:33 UTC
Filtering links for print, email and more
We are crawling a few websites using Nutch and our set of sites has
lot of content dealing with items like news and articles. While
performing a crawl, we noticed a large number of redundant, or even
unwanted links - especially when the crawl follows links for 'Email' ,
or 'Print' or 'Add Comments' etc. For example – this article on
www.fool.com: http://www.fool.com/investing/general/2009/02/13/steer-clear-of-this-spending-trap.aspx?source=iomsititn0000001
– It has email link for email, print, etc – that are regular URLs.
And It either opens up the same article/news (but in different window)
or goes to a page that requires authentication (say in case of 'Add
Comments').
I am trying to figure out a best option to remove those links and make
sure that the crawler doesn't follow those urls – one option would be
to use URL filers to remove particular pattern – however, problem with
this approach is that the pattern could be different for different
sites and so we may have to create patterns for each site and of
course it will break if the site logic changes. Does anyone know of a
better way to implement this filter? Is there any algorithm/concept I
can try to implement? Any help would be great.
Thanks,
Jha.