A
download nitori.pl
Language: Perl
LOC: 17
Project Info
test-akihito-project - This is Test Project(test-akihito-project)
Server: Google
Type: svn
...ito‑project\trunk\perl\bot\
   author.pl
   flickr.pl
   ikea-xpath.pl
   ikea.pl
   japanese_kotowaza.pl
   nirayama.pl
   nitori.pl
   webscpaper_filter.pl

#!/usr/bin/perl

use Web::Scraper;
use URI;
use YAML;

my $domein = 'http://www.ikea.com';
my $url = 'http://www.nitori-net.jp/'; 

my $scraper = scraper {
   process 'title','title[]' => 'TEXT'; 
   process 'div#category_top01 div.category_m ','products[]' => 
       scraper {
            process 'a>img','img'     => '@SRC';
            process 'div>a','name[]'  => 'TEXT';
            process 'div>a','link'    => '@HREF';
      };
   result qw/title products/
}->scrape(URI->new($url));

print YAML::Dump($scraper);

__END__

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us