root/trunk/plagger/assets/plugins/CustomFeed-Script/jp-playstation-store.pl
| Revision 1963 (checked in by miyagawa, 1 year ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | #!/usr/bin/perl |
| 2 | use strict; |
| 3 | use Web::Scraper; |
| 4 | use URI; |
| 5 | use YAML; |
| 6 | |
| 7 | binmode STDOUT, ":utf8"; |
| 8 | |
| 9 | my $uri = URI->new("http://www.jp.playstation.com/store/"); |
| 10 | my $scraper = scraper { |
| 11 | result->{link} = $uri; # xxx |
| 12 | process "title", title => 'TEXT'; |
| 13 | process "#Sinfo p a", 'entries[]' => { link => '@href', title => 'TEXT' }; |
| 14 | }; |
| 15 | my $result = $scraper->scrape($uri); |
| 16 | |
| 17 | print Dump $result; |
| 18 | |
| 19 | |
| 20 | |
| 21 |
Note: See TracBrowser for help on using the browser.
