Looking for help!
NAME
WWW::FetchStory::Fetcher::AO3 - fetching module for WWW::FetchStory
VERSION
version 0.2501
DESCRIPTION
This is the AO3 story-fetching plugin for WWW::FetchStory.
METHODS
info
Information about the fetcher.
$info = $self->info();
priority
The priority of this fetcher. Fetchers with higher priority get tried first. This is useful where there may be a generic fetcher for a particular site, and then a more specialized fetcher for particular sections of a site. For example, there may be a generic Livejournal fetcher, and then refinements for particular Livejournal community, such as the sshg_exchange community. This works as either a class function or a method.
This must be overridden by the specific fetcher class.
$priority = $self->priority();
$priority = WWW::FetchStory::Fetcher::priority($class);
allow
If this fetcher can be used for the given URL, then this returns true. This must be overridden by the specific fetcher class.
if ($obj->allow($url))
{
....
}
Private Methods
get_toc
Get a table-of-contents page. If we already have a downloaded EPUB file then we extract the needed pages from that instead.
parse_toc
Parse the table-of-contents file.
%info = $self->parse_toc(content=>$content,
url=>$url,
urls=>\@urls);
This should return a hash containing:
- chapters
-
An array of URLs for the chapters of the story. In the case where the story only takes one page, that will be the chapter. In the case where multiple URLs have been passed in, it will be those URLs.
- title
-
The title of the story.
It may also return additional information, such as Summary.
parse_chapter_urls
Figure out the URLs for the chapters of this story.
parse_epub_url
Figure out the URL for the EPUB version of this story.
parse_title
Get the title.
parse_author
Get the author.
parse_summary
Get the summary.
parse_wordcount
Get the wordcount.
parse_characters
Get the characters.
parse_universe
Get the universe.
parse_category
Get the category.
parse_rating
Get the rating from the content
whoami
For debugging purposes