SFEED_WEB(1) | General Commands Manual | SFEED_WEB(1) |
sfeed_web
— finds
URLs to feeds from a HTML webpage
sfeed_web |
[baseurl] |
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" />
url<TAB>content-type<newline>
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.
The sfeed_web
utility exits 0 on
success, and >0 if an error occurs.
Get URLs from a website:
curl -s -L 'https://codemadness.org/' | sfeed_web 'https://codemadness.org/'
Hiltjo Posthuma <hiltjo@codemadness.org>
July 27, 2021 | Debian |