NAME

WWW::FetchStory - Fetch a story from a fiction website

VERSION

version 0.2201

SYNOPSIS

    use WWW::FetchStory;

    my $obj = WWW::FetchStory->new(%args);

    my %story_info = $obj->fetch_story(urls=>\@urls);

DESCRIPTION

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.

Fetcher Plugins

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

METHODS

new

Create a new object, setting global values for the object.

    my $obj = WWW::FetchStory->new();

fetch_story

    my %story_info = fetch_story(
                                 urls=>\@urls,
                                 verbose=>0,
                                 toc=>0);

list_fetchers

    my %fetchers = list_fetchers();

BUGS

Please report any bugs or feature requests to the author.