WWW::OPG::Scraper - Drop-in module using web page scraping
Version 1.004 ($Id: Scraper.pm 10925 2010-01-10 20:27:32Z FREQUENCY@cpan.org $)
use WWW::OPG::Scraper; my $opg = WWW::OPG::Scraper->new(); eval { $opg->poll(); }; print "Currently generating ", $opg->power, "MW of electricity\n";
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.
WWW::OPG::Scraper->new( \%params )
Implements the interface as specified in WWW::OPG
WWW::OPG
$opg->poll()
$opg->power()
$opg->last_updated()
Jonathan Yu <jawnsy@cpan.org>
Please file bugs for this module under the WWW::OPG distribution. For more information, see WWW::OPG's perldoc.
This has the same copyright and licensing terms as WWW::OPG.
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.
To install WWW::OPG, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::OPG
CPAN shell
perl -MCPAN -e shell install WWW::OPG
For more information on module installation, please visit the detailed CPAN module installation guide.