Expand description
Feed autodiscovery from a website homepage. Owner: cli agent.
§Requirements
- GET the
site_urlHTML viaHttpClient::get_bytes. - Parse the
<head>for<link rel="alternate" type="application/rss+xml">andtype="application/atom+xml"(also acceptapplication/json/feed+json). Use the lightweighttlHTML parser — do not pull a heavyweight DOM stack. - Resolve each
hrefto an absolute URL againstsite_url(theurlcrate). - Map the
typetofeed_type("rss" | "atom" | "json"), carry thetitleattr. - If the page is itself a feed (content sniffing optional), or if no
<link>tags are found, return an empty list rather than erroring (the CLI decides exit behavior).
Functions§
- discover
- Discover feeds advertised on
site_url. Owner:cliagent.