This is a base class, 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 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().

It 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>:

Additional standard fields may be added in the future. 'volume' and 'edition' are common. In some cases, there may be no information available for 'volume' or 'edition', and so these may be set to the empty string. However, they must still be set in the hash!

Due 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.

Accessor/Mutator method for handling the search status of this record. This is 0 by default, and should only be set true if search was deemed successful and $driver->book contains appropriate information.

Accessor/Mutator method for handling the book information retrieved by the driver. The driver should create an anonymous hash containing the standard fields. WWW::Scraper::ISBN->search sets the WWW::Scraper::ISBN::Record->book() field to this value.

Searches for information on the given ISBN number. Each driver must define its own search routine, doing whatever is necessary to retrieve the desired information. If found, it should set $driver->found and $driver->book accordingly.