You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Iain <ia...@idcl.co.uk> on 2006/08/06 13:15:21 UTC

Problems and questions on 0.8

I’m a nutch beginner and a bit out of practice with java.

 

Ultimately, I want to exhaustively scrape a few hundred thousand sites.
Right now, I’m trying to get my head round some details.  I’m using the
crawl command for now.

 

1.                   If I use ‘nutch readdb <crawldb> –stats’, I get no
output.  Dump works, but I get nothing from stats.  What am I doing wrong?
Version 0.7.2 works fine, but .8 does not

2.                   I’m using the db.ignore.external.links option and have
had problems setting the crawl-url filter for the hosts. .  In the end I’ve
put in +^http://*/ which seems to work.  Is this right?  

3.                   If I scrape a site with embedded flash, the flash is
not parsed and so I get no linked pages.  Is this what I should expect?  Do
I need to do something to enable parsing embedded objects and or flash?

4.                   If I understand comments in the crawl-urlfilter.txt
correctly, links containing a ‘?’ (queries) are not followed.  I most
certainly need to do this.

5.                   At least some asp pages to do not use anchors and so on
for navigation, but instead posts triggered by javascript.  Will nutch
handle these (I imagine this also applies to other self posting pages such
as jsp).

6.                   Will nutch handle javascript redirects?

 

Hope someone can help me with some of these!

 

Iain


Re: How do I find out what is goint wrong?

Posted by Andrzej Bialecki <ab...@getopt.org>.
Iain wrote:
> I'm testing nutch with a view to exhaustive scraping (using version 0.8).
>
> But I've got some sites that don't scrape and no idea why.  Case in point is
> http://www.idc.com.
>
> This is a HUGE site, but I get nothing in nutch.
>   

Check http://www.idc.com/robots.txt - it specifically disallows all 
other robots (*)  from accessing this site.

(and I agree that we should produce some message in the logs about this 
...).

-- 
Best regards,
Andrzej Bialecki     <><
 ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com



How do I find out what is goint wrong?

Posted by Iain <ia...@idcl.co.uk>.
I'm testing nutch with a view to exhaustive scraping (using version 0.8).

But I've got some sites that don't scrape and no idea why.  Case in point is
http://www.idc.com.

This is a HUGE site, but I get nothing in nutch.

Hadoop.log reports
2006-08-06 18:04:00,187 INFO  fetcher.Fetcher - fetching http://www.idc.com/
2006-08-06 18:04:00,203 INFO  http.Http - http.proxy.host = null
2006-08-06 18:04:00,203 INFO  http.Http - http.proxy.port = 8080
2006-08-06 18:04:00,203 INFO  http.Http - http.timeout = 10000
2006-08-06 18:04:00,203 INFO  http.Http - http.content.limit = -1
2006-08-06 18:04:00,203 INFO  http.Http - http.agent = IDCL/Nutch-0.8
2006-08-06 18:04:00,203 INFO  http.Http - fetcher.server.delay = 500
2006-08-06 18:04:00,203 INFO  http.Http - http.max.delays = 1000
2006-08-06 18:04:02,093 INFO  fetcher.Fetcher - Fetcher: done

Readdb (-dump) reports
http://www.idc.com/	Version: 4
Status: 3 (DB_gone)
Fetch time: Sun Aug 06 18:04:00 BST 2006
Modified time: Thu Jan 01 01:00:00 GMT 1970
Retries since fetch: 0
Retry interval: 30.0 days
Score: 1.0
Signature: null
Metadata: null

And segread reports

Recno:: 0
URL:: http://www.idc.com/

CrawlDatum::
Version: 4
Status: 1 (DB_unfetched)
Fetch time: Sun Aug 06 18:03:54 BST 2006
Modified time: Thu Jan 01 01:00:00 GMT 1970
Retries since fetch: 0
Retry interval: 30.0 days
Score: 1.0
Signature: null
Metadata: null

CrawlDatum::
Version: 4
Status: 7 (fetch_gone)
Fetch time: Sun Aug 06 18:04:00 BST 2006
Modified time: Thu Jan 01 01:00:00 GMT 1970
Retries since fetch: 0
Retry interval: 30.0 days
Score: 1.0
Signature: null
Metadata: null

Content::
url: http://www.idc.com/
base: http://www.idc.com/
contentType: 
metadata: nutch.segment.name=20060806180357 nutch.crawl.score=1.0 
Content:

I have been unable to find defintions of fetch_gone anywhere, so I'm not
really sure what these logs mean.

I have a baby scraper which I want to abandon in favour of nutch and this
has no problems (well, not different ones!) with this site.

The page is there, there's nothing obviously odd about it, but it's not
brought back and or stored.

How can I diagnose this?

Iain 



RE: Problems and questions on 0.8

Posted by Iain <ia...@idcl.co.uk>.
Thanks for your input ...

> Ultimately, I want to exhaustively scrape a few hundred thousand sites.
> Right now, I'm trying to get my head round some details.  I'm using the
> crawl command for now.

A word of advice avoid using the crawl command its a one hit wonder do
the full cycle even if you are crawling just one website.
[Iain>>] I expect I won't use the crawl command.  But I'm trying to limit
the curve in the learning right now!

>
>
> 1.                   If I use 'nutch readdb <crawldb> –stats', I get no
> output.  Dump works, but I get nothing from stats.  What am I doing wrong?
> Version 0.7.2 works fine, but .8 does not

Its a bug and its been fixed you can find it in SVN. With your version
you might have to look at logs/hadoop.log or change conf/log4j
properties to have it in standard out.
[Iain>>] Thanks.  I found the output in hadoop.log.  Building from sources
and downloading a particular version is part of my learning curve which is
yet to come ... (I hope!)

>
> 3.                   If I scrape a site with embedded flash, the flash is
> not parsed and so I get no linked pages.  Is this what I should expect?
Do
> I need to do something to enable parsing embedded objects and or flash?

plugin-flash I think I am not sure.. you need to enable all the
plugins that you need Have a look nutch-site.xml/nutch-default.xml
under conf.
[Iain>>] So I need to add parse-swf to plugin.includes ...
I've done this and the plugin appears to be loaded, but it does not pick up
the embedded flash object (at least it does not appear to).  So swf files
referenced inside a (flash) <object> container do not seem to be parsed.

[Iain>>] Thanks.


RE: How....

Posted by Iain <ia...@idcl.co.uk>.
Yeah, I worked out the robots.txt thing - thanks!

Any ideas about the <object> and .swf issue?

(Sorry this is disjointed, outlook <spit /> decided the subscription
confirmation was junk mail so I've not actually been getting messages!)

Iain


Re: Problems and questions on 0.8

Posted by Zaheed Haque <za...@gmail.com>.
On 8/6/06, Iain <ia...@idcl.co.uk> wrote:
> I'm a nutch beginner and a bit out of practice with java.
>
>
>
> Ultimately, I want to exhaustively scrape a few hundred thousand sites.
> Right now, I'm trying to get my head round some details.  I'm using the
> crawl command for now.

A word of advice avoid using the crawl command its a one hit wonder do
the full cycle even if you are crawling just one website.

>
>
> 1.                   If I use 'nutch readdb <crawldb> –stats', I get no
> output.  Dump works, but I get nothing from stats.  What am I doing wrong?
> Version 0.7.2 works fine, but .8 does not

Its a bug and its been fixed you can find it in SVN. With your version
you might have to look at logs/hadoop.log or change conf/log4j
properties to have it in standard out.

>
> 2.                   I'm using the db.ignore.external.links option and have
> had problems setting the crawl-url filter for the hosts. .  In the end I've
> put in +^http://*/ which seems to work.  Is this right?

Again you are better off not using this one hit wonder. Honestly I
would like to propose that we remove this "command". The command
supposed to help users but its actually "hides all the process"
involved for running a search engine. I see no point in hiding these
process from operators who will need to know them no matter what. Then
again its my view.

>
> 3.                   If I scrape a site with embedded flash, the flash is
> not parsed and so I get no linked pages.  Is this what I should expect?  Do
> I need to do something to enable parsing embedded objects and or flash?

plugin-flash I think I am not sure.. you need to enable all the
plugins that you need Have a look nutch-site.xml/nutch-default.xml
under conf.

>

> 4.                   If I understand comments in the crawl-urlfilter.txt
> correctly, links containing a '?' (queries) are not followed.  I most
> certainly need to do this.

> 5.                   At least some asp pages to do not use anchors and so on
> for navigation, but instead posts triggered by javascript.  Will nutch
> handle these (I imagine this also applies to other self posting pages such
> as jsp).
>
> 6.                   Will nutch handle javascript redirects?

As far as i know yes.
>
>
> Hope someone can help me with some of these!
>
>
>
> Iain
>
>
>