You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Tianwei Sheng <ti...@gmail.com> on 2012/07/19 06:14:28 UTC

missing pages issue

Hi, all,

I used nutch for a while, it works well. But sometimes I found that it will
miss pages and the parse phase can't extract some outlinks. I check the
html pages and also enable the debug log for nutch, but still can't find
any clues why I will meet such problems.

For example, for the following seed URL, I can't crawl any pages. I am
doing vertical search, so I set the "db.ignore.external.links=true",
http://www.sidley.com/

besides, for the following seed url:
http://www.aalrr.com

when parsing the pages:
http://www.aalrr.com/attorneys/

I can't extract the links, such as "<a href="list.aspx?LastName=A">A</a>".

Do you guys have any idea why the parser will have problem?  Is it because
those html pages themselves have some problems or my setting is wrong. I
didn't add any filter in the regex_urlfilter.txt, just use:
+.

I tried both 1.5 and 2.0, the result is same.
nutch-1.5/runtime/local$ ./bin/nutch crawl urls/ -dir db/ -depth 3

Hope you can give me some suggestions, thanks a lot.

Tianwei

Re: missing pages issue

Posted by IT_ailen <zy...@gmail.com>.
Tianwei wrote
> 
> I always didn't set topN, just used the default value, it works well for
> other crawling. I guess the default value is large  enough. I remember
> it's
> the Interger.Maximum.
> 
I google the default value of topN and you are right.

Tianwei wrote
> 
> But it seems that the number of outlinks on those pages should be OK.
> 
I suggest you to set the value of this property to -1 

Tianwei wrote
> 
> One potential issue may be some anchors are "img", not plain text, don't
> know if it will cause some problems in the parser. But for the case of "
> list.aspx?LastName=A A ", the anchor is "A", should be able to
> extract that link and crawl it.
> 
Some image anchors may be filtered. In the file regex-urlfilter.txt, there
is a default negative filter,

-\.(gif|GIF|jpg|JPG|png|PNG|ico|ICO|css|CSS|sit|SIT|eps|EPS|wmf|WMF|zip|ZIP|   
ppt|PPT|mpg|MPG|xls|XLS|gz|GZ|rpm|RPM|tgz|TGZ|mov|MOV|exe|EXE|jpeg|JPEG|bmp|BMP|js|JS)$

I thank you can check it in you filter-file~~


-----
I'm what I am.
--
View this message in context: http://lucene.472066.n3.nabble.com/missing-pages-issue-tp3995893p3995916.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Re: missing pages issue

Posted by Tianwei Sheng <ti...@gmail.com>.
Hi,

Thanks for your suggestions.

On Wed, Jul 18, 2012 at 10:08 PM, IT_ailen <zy...@gmail.com>wrote:

> Hello, in my opinion, there are several causes for missing pages.
> 1. the topN option you set may be too low;
>

I always didn't set topN, just used the default value, it works well for
other crawling. I guess the default value is large  enough. I remember it's
the Interger.Maximum.

2. you are banned by the destine server because of frequently requiring;
>
I am pretty sure those sites will not ban me.


> 3. the property "db.max.outlinks.per.page" limits the size of fetching
> queue
>
But it seems that the number of outlinks on those pages should be OK.


One potential issue may be some anchors are "img", not plain text, don't
know if it will cause some problems in the parser. But for the case of "<a
href="list.aspx?LastName=A">A</a>", the anchor is "A", should be able to
extract that link and crawl it.

Tianwei

> I hope the tips can help you ~~
>
>
> -----
> I'm what I am.
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/missing-pages-issue-tp3995893p3995900.html
> Sent from the Nutch - User mailing list archive at Nabble.com.
>

Re: missing pages issue

Posted by IT_ailen <zy...@gmail.com>.
Hello, in my opinion, there are several causes for missing pages.
1. the topN option you set may be too low;
2. you are banned by the destine server because of frequently requiring;
3. the property "db.max.outlinks.per.page" limits the size of fetching queue
I hope the tips can help you ~~


-----
I'm what I am.
--
View this message in context: http://lucene.472066.n3.nabble.com/missing-pages-issue-tp3995893p3995900.html
Sent from the Nutch - User mailing list archive at Nabble.com.