WWW::FetchStory - Fetch a story from a fiction website
version 0.2002
use WWW::FetchStory; my $obj = WWW::FetchStory->new(%args); my %story_info = $obj->fetch_story(urls=>\@urls);
This will fetch a story from a fiction website, intelligently dealing with the formats from various different fiction websites such as fanfiction.net; it deals with multi-file stories, and strips all the extras from the HTML (such as navbars and javascript) so that all you get is the story text and its formatting.
In order to tidy the HTML and parse the pages for data about the story, site-specific "Fetcher" plugins are required.
These are in the namespace 'WWW::FetchStory::Fetcher'; a fetcher for the Foo site would be called 'WWW::FetchStory::Fetcher::Foo'.
Create a new object, setting global values for the object.
my $obj = WWW::FetchStory->new();
my %story_info = fetch_story( urls=>\@urls, verbose=>0, toc=>0);
my %fetchers = list_fetchers();
Please report any bugs or feature requests to the author.
To install WWW::FetchStory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::FetchStory
CPAN shell
perl -MCPAN -e shell install WWW::FetchStory
For more information on module installation, please visit the detailed CPAN module installation guide.