|
NAMEWWW::Scraper::ISBN::Driver - Driver class for WWW::Scraper::ISBN module. SYNOPSIS use WWW::Scraper::ISBN::Driver;
$driver = WWW::Scraper::ISBN::Driver->new();
$driver->search($isbn);
if ($driver->found) { ... }
$driver->verbosity(1);
my $book = $driver->book();
print $book('title');
print $driver->error;
REQUIRESRequires the following modules be installed: Carp DESCRIPTIONThis is a base class, from which all site-specific drivers should inherit its members and methods. Driver subclasses named '$name' should be packaged as "WWW::Scraper::ISBN::$name_Driver", e.g. "WWW::Scraper::ISBN::LOC_Driver" for the LOC (Library of Congress) driver. Each driver need only implement the search() method, though they may have as many other methods as they need to get their job done. Only search() will be called by "WWW::Scraper::ISBN->search()". Standard FieldsIt is important that the different drivers return at least a core set of information, though they may return additional information. The following self-explanatory fields should exist in "$driver->book": In some cases, there may be no information for these fields, and so these may be set to the empty string. However, they must still be set in the hash! Additional standard fields may be added in the future. 'pages', 'weight', 'height', 'depth and 'description' are common. ExpirationDue to the dynamic, ever-changing nature of the web, it is highly likely that the site from which many of these drivers glean their information will change. Hopefully, driver maintainers will keep drivers up to date, but they will all expire, and may behave unexpectedly. Keep this in mind if the driver continually returns weird results. METHODSThe following methods are provided by "WWW::Scraper::ISBN::Driver":
KNOWN DRIVERSThe current list of known drivers can be installed via the following Bundle: Bundle::WWW::Scraper::ISBN::Drivers
If you create a driver, please post a GitHub pull request or create an RT ticket against the Bundle distribution. SEE ALSOWWW::Scraper::ISBN
WWW::Scraper::ISBN::Record AUTHOR2004-2013 Andy Schamp, E<lt>andy@schamp.netE<gt> 2013-2019 Barbie, E<lt>barbie@cpan.orgE<gt> COPYRIGHT AND LICENSECopyright 2004-2013 by Andy Schamp Copyright 2013-2019 by Barbie This distribution is free software; you can redistribute it and/or modify it under the Artistic Licence v2.
|