Tatsuhiko Miyagawa > Web-Scraper-0.21_01 > Web::Scraper

Download:
Web-Scraper-0.21_01.tar.gz

Dependencies

Annotate this POD (2)

CPAN RT

New  4
Open  4
View/Report Bugs
Module Version: 0.21_01   Source   Latest Release: Web-Scraper-0.37

NAME ^

Web::Scraper - Web Scraping Toolkit inspired by Scrapi

SYNOPSIS ^

  use URI;
  use Web::Scraper;

  my $ebay_auction = scraper {
      process "h3.ens>a",
          description => 'TEXT',
          url => '@href';
      process "td.ebcPr>span", price => "TEXT";
      process "div.ebPicture >a>img", image => '@src';
  };

  my $ebay = scraper {
      process "table.ebItemlist tr.single",
          "auctions[]" => $ebay_auction;
      result 'auctions';
  };

  my $res = $ebay->scrape( URI->new("http://search.ebay.com/apple-ipod-nano_W0QQssPageNameZWLRS") );

DESCRIPTION ^

Web::Scraper is a web scraper toolkit, inspired by Ruby's equivalent Scrapi.

THIS MODULE IS IN ITS BETA QUALITY. THE API IS STOLEN FROM SCRAPI BUT MAY CHANGE IN THE FUTURE

AUTHOR ^

Tatsuhiko Miyagawa <miyagawa@bulknews.net>

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO ^

http://blog.labnotes.org/category/scrapi/

syntax highlighting: