carta
sfeed_web(1)

sfeed_web1

Finds urls to feeds from a html webpage

Usage

sfeed_web [baseurl]

Overview

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" />

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.

Exit status

The sfeed_web utility exits 0 on success, and >0 if an error occurs.

Examples

Get URLs from a website:

curl -s -L 'https://codemadness.org/' | sfeed_web 'https://codemadness.org/'

History

  • Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm)

Authors

Hiltjo Posthuma ⟨[email protected]⟩

From sfeed 2.2-1 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.