PDAScraper/NewScientist.pm untested

filter: Statementstmt 0.0% 0 / 3 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 5 CC 1 SCAR 6.9
CC
1
Cov
0%
config
2.0
CRAP 2.0
1 package WWW::PDAScraper::NewScientist;
2  
3 # PDAScraper.pm rules for scraping the
4 # New Scientist website
5  
6 sub config {
7 return {
8 name => 'New Scientist Headlines',
9 start_from => 'http://www.newscientist.com/news.ns',
10 chunk_spec => [ "_tag", "div", "class", "copycontent" ],
11 url_regex => [ '$', '&print=true' ],
12 encoding => 'ISO-8859-1'
13 };
14 }
15  
16 1;
17