sfeed_web — finds URLs to feeds from a HTML webpage
Contents
Description
sfeed_web reads the HTML data of the webpage from stdin and writes the found URLs to stdout.
Such a link reference in HTML code looks like:
<link rel="alternate" href="atom.xml" type="application/atom+xml" />
Examples
Get URLs from a website:
curl -s -L 'https://codemadness.org/' | sfeed_web 'https://codemadness.org/'
Exit Status
The sfeed_web utility exits 0 on success, and >0 if an error occurs.
Name
sfeed_web — finds URLs to feeds from a HTML webpage
Options
baseurl Optional base URL to use for found feed URLs that are relative.
Output Format
url<TAB>content-type<newline>
URL Found relative or absolute URL.
For relative URLs if a <base href="..." /> tag is found it will be used, otherwise if the baseurl
option is specified then that is used, if neither are set then the relative URL is printed.
content-type
Usually application/atom+xml or application/rss+xml.
See Also
sfeed_update(1), sh(1)
Synopsis
sfeed_web [baseurl]
