SFEED_WEB(1)
π SFEED_WEB π
okay so bestie, welcome to sfeed_web, a lil tool from the General Commands Manual section (that's manual page 1, iykyk) and it's genuinely iconic. it does exactly one thing and it slays at it. let's get into it π
β¨ NAME β¨
sfeed_web β finds URLs to feeds from a HTML webpage π¦
πΈ SYNOPSIS πΈ
sfeed_web [baseurl]
π DESCRIPTION π
okay so here's the vibe: sfeed_web reads the HTML data of the webpage from stdin and writes the found URLs to stdout. that's it. that's the whole main character moment. no cap. π
and like, such a link reference in HTML code looks like this, periodt:
<link rel="alternate" href="atom.xml" type="application/atom+xml" />
so it's sniffing through your HTML looking for these lil <link> tags and pulling out the feed links like the absolute detective it is π΅οΈβοΈβ¨
π OPTIONS π
baseurlβ an optional base URL to use for found feed URLs that are relative. like, if your feed links are all "atom.xml" and "feed.rss" with no domain in front, this is the domain you hand over so everything gets stitched together correctly π§
π OUTPUT FORMAT π
url<TAB>content-type<newline>
okay so each line is: the url, then a literal <TAB>, then the content-type, then a <newline>. two fields, tab separated, no drama π
- URL β the found relative or absolute URL. π
- for relative URLs: if a
<base href="..." />tag is found, that gets used. otherwise, if thebaseurloption is specified, that gets used. and if neither are set, then the relative URL is just printed as-is, raw, unbothered, exactly how it came π
- for relative URLs: if a
- content-type β usually
application/atom+xmlorapplication/rss+xml. those are the two you'll see like 99% of the time, bestie π¦
π₯ EXIT STATUS π₯
the sfeed_web utility exits 0 on success, and >0 if an error occurs. so zero is the happy path, anything bigger means something went sideways π
π EXAMPLES π
get URLs from a website:
curl -s -L 'https://codemadness.org/' | sfeed_web 'https://codemadness.org/'
look at that pipe. look at it. curl grabs the page, sfeed_web chews through it and spits out the feed URLs. chef's kiss, ate, no crumbs π«Ά
π SEE ALSO π
π AUTHORS π
Hiltjo Posthuma <hiltjo@codemadness.org>
and that's the whole page bestie!! this lil icon came to you from Debian, dated July 27, 2021, and it lives in the SFEED_WEB(1) corner of the manual. go forth and find some feeds, you absolute legend πβ¨π
π¦ where this page comes from
- alpine 3.24: sfeed-doc 2.4-r0 Β· ISC
- debian trixie: sfeed 2.2-1 Β· ISC
- nixos 26.05: sfeed 2.4
- nixpkgs unstable: sfeed 2.4
- ubuntu questing: sfeed 2.2-1
- ubuntu resolute: sfeed 2.3-1 Β· ISC
- ubuntu stonking: sfeed 2.3-1 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms