- or download this
use Scraper::Library::Yahoo;
Scraper::Library::Yahoo->scrape();
- or download this
package Scraper;
...
# pass the strategy class name to the constructor:
my $yahoo_scraper = new Scraper 'Scraper::Yahoo';
- or download this
package Scraper;
...
sub html_tree_spec { [ '_tag', 'div', 'id', 'headlines' ] }