Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Feed::Find(3)	      User Contributed Perl Documentation	 Feed::Find(3)

NAME
       Feed::Find - Syndication	feed auto-discovery

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

DESCRIPTION
       Feed::Find implements feed auto-discovery for finding syndication
       feeds, given a URI. It (currently) passes all of	the auto-discovery
       tests at	http://diveintomark.org/tests/client/autodiscovery/.

       Feed::Find will discover	the following feed formats:

       o   RSS 0.91

       o   RSS 1.0

       o   RSS 2.0

       o   Atom

USAGE
   Feed::Find->find($uri)
       Given a URI $uri, use a variety of techniques to	find the feeds
       associated with that page. If $uri itself points	to a feed (i.e., if
       the Content-Type	of the response	is a recognized	feed type), returns
       $uri.

       Returns a list of feed URIs.

       The following techniques	are used:

       1. _link_ tag auto-discovery
	   If the page contains	any _link_ tags	in the _head_ section, these
	   tags	are examined for recognized feed content types.	The following
	   content types are treated as	feeds: application/x.atom+xml,
	   application/atom+xml, application/xml, text/xml,
	   application/rss+xml,	and application/rdf+xml.

       2. Scanning _a_ tags
	   If the page does not	contain	any known _link_ tags, the page	is
	   then	scanned	for _a_	tags for links to URIs with certain file
	   extensions. The following extensions	are treated as feeds: .rss,
	   .xml, and .rdf.

	   Note	that this technique is employed	only if	the first technique
	   returns no results.

   Feed::Find->find_in_html(\$html [, $base_uri	])
       Given a reference to a string $html containing an HTML page, uses the
       same techniques as described above in find to find the feeds associated
       with that page.

       If you know the URI of the page,	you should provide it in $base_uri, so
       that relative links can be properly made	absolute. Feed::Find will
       attempt to determine the	correct	base URI, but unless that URI is
       specified in the	HTML itself (in	a "<meta>" tag), you'll	need to	supply
       it yourself.

       Returns a list of feed URIs.

LICENSE
       Feed::Find is free software; you	may redistribute it and/or modify it
       under the same terms as Perl itself.

AUTHOR & COPYRIGHT
       Except where otherwise noted, Feed::Find	is Copyright 2004 Benjamin
       Trott, ben+cpan@stupidfool.org. All rights reserved.

perl v5.32.0			  2011-01-28			 Feed::Find(3)

NAME | SYNOPSIS | DESCRIPTION | USAGE | LICENSE | AUTHOR & COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Feed::Find&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help