The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Blog::Metadata::Icon - Extract icon (FOAF photo, favicon) from weblog

SYNOPSIS

    use WWW::Blog::Metadata;
    my $meta = WWW::Blog::Metadata->extract_from_uri($uri)
        or die WWW::Blog::Metadata->errstr;
    print $meta->icon_uri;

DESCRIPTION

WWW::Blog::Metadata::Icon is a plugin for WWW::Blog::Metadata that attempts to extract photos/icons for a weblog author. It looks in three places:

1. a FOAF file, from either an img or depiction element.
3. a HEAD check on $uri/favicon.ico.

USAGE

WWW::Blog::Metadata::Icon adds 3 methods to the metadata object.

$meta->favicon_uri

The URI for a shortcut/favicon from either source #2 or #3 above.

$meta->foaf_icon_uri

The URI for an icon/photo from the FOAF file (#1 above).

$meta->icon_uri

Equivalent to $meta->foaf_icon_uri || $meta->favicon_uri.

LICENSE

WWW::Blog::Metadata::Icon is free software; you may redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR & COPYRIGHT

Except where otherwise noted, WWW::Blog::Metadata::Icon is Copyright 2005 Benjamin Trott, ben+cpan@stupidfool.org. All rights reserved.