NAME

App::Zapzi::FetchArticle - routines to get articles for Zapzi

VERSION

version 0.001

DESCRIPTION

These routines get articles, either via HTTP or from the file system and returns the raw HTML or text.

This interface is temporary to get the initial version of Zapzi working and will be replaced with a more flexible role based system later.

ATTRIBUTES

source

Pass in the source of the article - either a filename or a URL.

text

Holds the raw text of the article

content_type

MIME content type for text.

error

Holds details of any errors encountered while retrieving the article; will be blank if no errors.

METHODS

fetch

Retrieves the article and returns 1 if OK. Text of the article can then be found in text.

AUTHOR

Rupert Lane <rupert@rupert-lane.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Rupert Lane.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.