Sophie

Sophie

distrib > Mageia > 6 > armv7hl > by-pkgid > 1314a49436094a513297e0b988ae34d9 > files > 16

perl-Web-Scraper-0.380.0-3.mga6.noarch.rpm

#!/usr/bin/perl
use strict;
use Web::Scraper;
use URI;
use YAML;

my $stuff   = URI->new("http://www.jp.playstation.com/store/");
my $scraper = scraper {
    process "#Sinfo p a", 'news[]' => { link => '@href', title => 'TEXT' };
};
my $result = $scraper->scrape($stuff);

print YAML::Dump $result;