| 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 |