| 1 | package WWW::PDAScraper::ABC; | ||
| 2 | |||
| 3 | # PDAScraper.pm rules for scraping the | ||
| 4 | # Australian Broadcasting Corporation website | ||
| 5 | |||
| 6 | sub config { | ||
| 7 | return { | ||
| 8 | name => 'ABC', | ||
| 9 | start_from => 'http://abc.net.au/news/justin/default.htm', | ||
| 10 | chunk_regex => | ||
| 11 | qr|<!-- ==== START HEADLINE/FIRST PAR FEED COLUMN. \(Wallace Generated\) ===== -->(.*?)<!-- ======== END HEADLINE/FIRST PAR FEED COLUMN ====== -->|s, | ||
| 12 | link_spec => [sub { $_[0]->as_text ne 'FULL STORY' }], | ||
| 13 | url_regex => [ '^', 'http://www.abc.net.au/cgi-bin/common/printfriendly.pl?' ] | ||
| 14 | }; | ||
| 15 | } | ||
| 16 | |||
| 17 | 1; | ||
| 18 |