Help for this page

Select Code to Download


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