1Feed::Find(3)         User Contributed Perl Documentation        Feed::Find(3)
2
3
4

NAME

6       Feed::Find - Syndication feed auto-discovery
7

SYNOPSIS

9           use Feed::Find;
10           my @feeds = Feed::Find->find('http://example.com/');
11

DESCRIPTION

13       Feed::Find implements feed auto-discovery for finding syndication
14       feeds, given a URI. It (currently) passes all of the auto-discovery
15       tests at http://diveintomark.org/tests/client/autodiscovery/.
16
17       Feed::Find will discover the following feed formats:
18
19       ·   RSS 0.91
20
21       ·   RSS 1.0
22
23       ·   RSS 2.0
24
25       ·   Atom
26

USAGE

28   Feed::Find->find($uri)
29       Given a URI $uri, use a variety of techniques to find the feeds
30       associated with that page. If $uri itself points to a feed (i.e., if
31       the Content-Type of the response is a recognized feed type), returns
32       $uri.
33
34       Returns a list of feed URIs.
35
36       The following techniques are used:
37
38       1. <link> tag auto-discovery
39           If the page contains any <link> tags in the <head> section, these
40           tags are examined for recognized feed content types. The following
41           content types are treated as feeds: application/x.atom+xml,
42           application/atom+xml, application/xml, text/xml,
43           application/rss+xml, and application/rdf+xml.
44
45       2. Scanning <a> tags
46           If the page does not contain any known <link> tags, the page is
47           then scanned for <a> tags for links to URIs with certain file
48           extensions. The following extensions are treated as feeds: .rss,
49           .xml, and .rdf.
50
51           Note that this technique is employed only if the first technique
52           returns no results.
53
54   Feed::Find->find_in_html($html [, $base_uri ])
55       Given a string $html containing an HTML page, uses the same techniques
56       as described above in find to find the feeds associated with that page.
57
58       If you know the URI of the page, you should provide it in $base_uri, so
59       that relative links can be properly made absolute. Feed::Find will
60       attempt to determine the correct base URI, but unless that URI is
61       specified in the HTML itself (in a "<meta>" tag), you'll need to supply
62       it yourself.
63
64       Returns a list of feed URIs.
65

LICENSE

67       Feed::Find is free software; you may redistribute it and/or modify it
68       under the same terms as Perl itself.
69
71       Except where otherwise noted, Feed::Find is Copyright 2004 Benjamin
72       Trott, ben+cpan@stupidfool.org. All rights reserved.
73
74
75
76perl v5.12.0                      2005-09-09                     Feed::Find(3)
Impressum