NAME

HTML::RSSAutodiscovery - methods for retreiving RSS-ish information from an HTML document.

SYNOPSIS

use HTML::RSSAutodiscovery;
use Data::Dumper;

my $url = "http://www.diveintomark.org/";

my $html = HTML::RSSAutodiscovery->new();
print &Dumper($html->parse($url));

# Mark's gone a bit nuts with this and
# the list is too long to include here...

DESCRIPTION

Methods for retreiving RSS-ish information from an HTML document.

OBJECT METHODS

$pkg = HTML::RSSAutodiscovery->new()

Object constructor. Returns an object. Woot!

$pkg->parse($arg)

Parse an HTML document and return RSS-ish <link> information.

$arg may be either:

  • An HTML string, passed as a scalar reference.

  • A URI.

Returns an array reference of hash references whose keys are :

  • title

  • type

  • rel

  • href

VERSION

1.0

DATE

June 03, 2002

AUTHOR

Aaron Straup Cope

SEE ALSO

http://diveintomark.org/archives/2002/05/30.html#rss_autodiscovery

LICENSE

Copyright (c) 2002, Aaron Straup Cope. All Rights Reserved.

This is free software, you may use it and distribute it under the same terms as Perl itself.