NAME
WWW::OPG::Scraper - Drop-in module using web page scraping
VERSION
Version 1.004 ($Id: Scraper.pm 10925 2010-01-10 20:27:32Z FREQUENCY@cpan.org $)
SYNOPSIS
use WWW::OPG::Scraper;
my $opg = WWW::OPG::Scraper->new();
eval {
$opg->poll();
};
print "Currently generating ", $opg->power, "MW of electricity\n";
DESCRIPTION
This module was formerly the main interface provided in WWW::OPG. It provides a Perl interface to information published on Ontario Power Generation's web site at http://www.opg.com by scraping the main page.
METHODS
new
WWW::OPG::Scraper->new( \%params )
Implements the interface as specified in WWW::OPG
poll
$opg->poll()
Implements the interface as specified in WWW::OPG
power
$opg->power()
Implements the interface as specified in WWW::OPG
last_updated
$opg->last_updated()
Implements the interface as specified in WWW::OPG
AUTHOR
Jonathan Yu <jawnsy@cpan.org>
SEE ALSO
SUPPORT
Please file bugs for this module under the WWW::OPG
distribution. For more information, see WWW::OPG's perldoc.
LICENSE
This has the same copyright and licensing terms as WWW::OPG.
DISCLAIMER OF WARRANTY
The software is provided "AS IS", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.