Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 4ad3d1a5da4da0b6f17e448e62d8ca92 > files > 17

perl-Web-Scraper-0.370.0-3.mga4.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;