PDAScraper/ABC.pm untested

filter: Statementstmt 0.0% 0 / 4 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 6 CC 1 SCAR 6.9
CC
1
Cov
0%
config
2.0
CRAP 2.0
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