You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Kelvin <ks...@yahoo.com.sg> on 2011/05/04 17:20:25 UTC

Can I custom crawl using Nutch?

Hello,

I would like to crawl wikipedia using Nutch, but as it is too large, I would only like to crawl pages that are related to a particular subject.

For example, I would like to crawl for webpages of wikipedia that contain the term "Football". Is this possible using Nutch?

Thank you for your kind help.

Re: Can I custom crawl using Nutch?

Posted by Gabriele Kahlout <ga...@mysimpatico.com>.
Gabriele Kahlout wrote:
> 
> On Wed, May 4, 2011 at 6:22 PM, Kelvin &lt;ksxh@yahoo.com.sg&gt; wrote:
> 
>> Hi Gabriele,
>>
>> Thank you for your help. I am sorry, I am a newbie to nutch. If I crawl
>> the
>> whole wikipedia, the whole wikipedia will be stored in the crawldb ofmy
>> server?
>>
> 
> i think so (I'm also a newbie).
> 
wikipedia will get stored in the segments. Once indexed (and did all db
update stuff) you should delete them. 
Only information relating to the fetch/parse status of each link gets saved
to crawldb.  The lnk structure (in linkdb) should be maintained in linkdb.


--
View this message in context: http://lucene.472066.n3.nabble.com/Can-I-custom-crawl-using-Nutch-tp2899270p3081808.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Re: Can I custom crawl using Nutch?

Posted by Gabriele Kahlout <ga...@mysimpatico.com>.
On Wed, May 4, 2011 at 6:22 PM, Kelvin <ks...@yahoo.com.sg> wrote:

> Hi Gabriele,
>
> Thank you for your help. I am sorry, I am a newbie to nutch. If I crawl the
> whole wikipedia, the whole wikipedia will be stored in the crawldb ofmy
> server?
>

i think so (I'm also a newbie).

>
>
> And this will take up a very big space?
>

Less than the actual space perhaps, but yes. But you only need to maintain
the index and can empty the crawldb. I've posted a
script<http://wiki.apache.org/nutch/Whole-Web%20Crawling%20incremental%20script>which
crawls and indexes incrementally. So, you crawl (fetch and parse) 10
pages and then you index them. At that point you don't need the crawldb
anymore and can be deleted. In the index, or in the parser, or in between
you implement your football selecting logic and select what makes it into
the index.
This way you crawldb max size is that of 10 pages.


> I also need to crawl youtube, to look for videos whose metatags contain
> "Football", so this will be very large too?
>
>
> Best regards,
> Kelvin
>
>
>
> ________________________________
> From: Gabriele Kahlout <ga...@mysimpatico.com>
> To: user@nutch.apache.org; Kelvin <ks...@yahoo.com.sg>
> Sent: Wednesday, 4 May 2011 11:34 PM
> Subject: Re: Can I custom crawl using Nutch?
>
> On Wed, May 4, 2011 at 5:20 PM, Kelvin <ks...@yahoo.com.sg> wrote:
>
> > Hello,
> >
> > I would like to crawl wikipedia using Nutch, but as it is too large, I
> > would only like to crawl pages that are related to a particular subject.
> >
> > For example, I would like to crawl for webpages of wikipedia that contain
> > the term "Football". Is this possible using Nutch?
> >
>
> how will you know that the page contains football before you fetch, parse
> it, and analyze it?
>
> In the worst-case (and I think also best-case) you will have to fetch all
> wikipedia pages. You can choose what index, but not what to crawl (EXPERTS
> CORRECT ME), because as I said you need to analyze the whole content page
> to
> figure out if it cotnains football.
>
>
>
>
> >
> > Thank you for your kind help.
> >
>
>
>
> --
> Regards,
> K. Gabriele
>
> --- unchanged since 20/9/10 ---
> P.S. If the subject contains "[LON]" or the addressee acknowledges the
> receipt within 48 hours then I don't resend the email.
> subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧
> time(x)
> < Now + 48h) ⇒ ¬resend(I, this).
>
> If an email is sent by a sender that is not a trusted contact or the email
> does not contain a valid code then the email is not received. A valid code
> starts with a hyphen and ends with "X".
> ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
> L(-[a-z]+[0-9]X)).
>



-- 
Regards,
K. Gabriele

--- unchanged since 20/9/10 ---
P.S. If the subject contains "[LON]" or the addressee acknowledges the
receipt within 48 hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x)
< Now + 48h) ⇒ ¬resend(I, this).

If an email is sent by a sender that is not a trusted contact or the email
does not contain a valid code then the email is not received. A valid code
starts with a hyphen and ends with "X".
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
L(-[a-z]+[0-9]X)).

Re: Can I custom crawl using Nutch?

Posted by Kelvin <ks...@yahoo.com.sg>.
Hi Gabriele,

Thank you for your help. I am sorry, I am a newbie to nutch. If I crawl the whole wikipedia, the whole wikipedia will be stored in the crawldb ofmy server? 


And this will take up a very big space?

I also need to crawl youtube, to look for videos whose metatags contain "Football", so this will be very large too?


Best regards,
Kelvin



________________________________
From: Gabriele Kahlout <ga...@mysimpatico.com>
To: user@nutch.apache.org; Kelvin <ks...@yahoo.com.sg>
Sent: Wednesday, 4 May 2011 11:34 PM
Subject: Re: Can I custom crawl using Nutch?

On Wed, May 4, 2011 at 5:20 PM, Kelvin <ks...@yahoo.com.sg> wrote:

> Hello,
>
> I would like to crawl wikipedia using Nutch, but as it is too large, I
> would only like to crawl pages that are related to a particular subject.
>
> For example, I would like to crawl for webpages of wikipedia that contain
> the term "Football". Is this possible using Nutch?
>

how will you know that the page contains football before you fetch, parse
it, and analyze it?

In the worst-case (and I think also best-case) you will have to fetch all
wikipedia pages. You can choose what index, but not what to crawl (EXPERTS
CORRECT ME), because as I said you need to analyze the whole content page to
figure out if it cotnains football.




>
> Thank you for your kind help.
>



-- 
Regards,
K. Gabriele

--- unchanged since 20/9/10 ---
P.S. If the subject contains "[LON]" or the addressee acknowledges the
receipt within 48 hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x)
< Now + 48h) ⇒ ¬resend(I, this).

If an email is sent by a sender that is not a trusted contact or the email
does not contain a valid code then the email is not received. A valid code
starts with a hyphen and ends with "X".
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
L(-[a-z]+[0-9]X)).

Re: Can I custom crawl using Nutch?

Posted by Gabriele Kahlout <ga...@mysimpatico.com>.
On Wed, May 4, 2011 at 5:20 PM, Kelvin <ks...@yahoo.com.sg> wrote:

> Hello,
>
> I would like to crawl wikipedia using Nutch, but as it is too large, I
> would only like to crawl pages that are related to a particular subject.
>
> For example, I would like to crawl for webpages of wikipedia that contain
> the term "Football". Is this possible using Nutch?
>

how will you know that the page contains football before you fetch, parse
it, and analyze it?

In the worst-case (and I think also best-case) you will have to fetch all
wikipedia pages. You can choose what index, but not what to crawl (EXPERTS
CORRECT ME), because as I said you need to analyze the whole content page to
figure out if it cotnains football.




>
> Thank you for your kind help.
>



-- 
Regards,
K. Gabriele

--- unchanged since 20/9/10 ---
P.S. If the subject contains "[LON]" or the addressee acknowledges the
receipt within 48 hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x)
< Now + 48h) ⇒ ¬resend(I, this).

If an email is sent by a sender that is not a trusted contact or the email
does not contain a valid code then the email is not received. A valid code
starts with a hyphen and ends with "X".
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
L(-[a-z]+[0-9]X)).

Re: Can I custom crawl using Nutch?

Posted by Gabriele Kahlout <ga...@mysimpatico.com>.
Hannes Carl Meyer-2 wrote:
> 
> Hi,
> 
> I would rather use the wikipedia dumps!
> 
> You should have a look at jwpl http://code.google.com/p/jwpl/
> 
> BR
> 
> Hannes
> 
> 

How did you use JWPL? Any sample code?

--
View this message in context: http://lucene.472066.n3.nabble.com/Can-I-custom-crawl-using-Nutch-tp2899270p3081816.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Re: Can I custom crawl using Nutch?

Posted by Kelvin <ks...@yahoo.com.sg>.
Hi Hannes,

Thanks for the suggestion, I will have a look at wikipedia dumps. What is your advice on integrating the downloaded data from wikipedia dumps with Lucene? Can I use Lucene to directly index it? My initial thoughts are getting the mysql version of the wikipedia dumps, then use Lusql to create an Lucene index of the mysql data. 


What is your take on this?

Many thanks

Best regards,
Kelvin



________________________________
From: Hannes Carl Meyer <ha...@googlemail.com>
To: user@nutch.apache.org; Kelvin <ks...@yahoo.com.sg>
Sent: Wednesday, 4 May 2011 11:37 PM
Subject: Re: Can I custom crawl using Nutch?

Hi,

I would rather use the wikipedia dumps!

You should have a look at jwpl http://code.google.com/p/jwpl/

BR

Hannes

On Wed, May 4, 2011 at 5:20 PM, Kelvin <ks...@yahoo.com.sg> wrote:

> Hello,
>
> I would like to crawl wikipedia using Nutch, but as it is too large, I
> would only like to crawl pages that are related to a particular subject.
>
> For example, I would like to crawl for webpages of wikipedia that contain
> the term "Football". Is this possible using Nutch?
>
> Thank you for your kind help.
>

Re: Can I custom crawl using Nutch?

Posted by Hannes Carl Meyer <ha...@googlemail.com>.
Hi,

I would rather use the wikipedia dumps!

You should have a look at jwpl http://code.google.com/p/jwpl/

BR

Hannes

On Wed, May 4, 2011 at 5:20 PM, Kelvin <ks...@yahoo.com.sg> wrote:

> Hello,
>
> I would like to crawl wikipedia using Nutch, but as it is too large, I
> would only like to crawl pages that are related to a particular subject.
>
> For example, I would like to crawl for webpages of wikipedia that contain
> the term "Football". Is this possible using Nutch?
>
> Thank you for your kind help.
>