shivanisai has asked for the wisdom of the Perl Monks concerning the following question:
Look at the code given below.
use Scrappy; my $scraper = Scrappy->new; $scraper->crawl('http://search.cpan.org/recent', '/recent' => { '#cpansearch li a' => sub { print $_[1]->{href}, "\n"; } } );
Here '/recent' is given as a hash key value for the crawl method. I can understand it may be given from page_source (or) from the URL. But this is given only in scrappy 0.94111280,not in scrappy 0.62. I don't know how it should be given for other sites(For ex.http://www.google.co.in/).Could u please clear how it should be given?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how can i give the key value in Scrappy crawl method
by marto (Cardinal) on May 13, 2011 at 08:56 UTC | |
|
Re: how can i give the key value in Scrappy crawl method
by Anonymous Monk on May 13, 2011 at 08:50 UTC |