Skip to main content

Module discover

Module discover 

Source
Expand description

Feed autodiscovery from a website homepage. Owner: cli agent.

§Requirements

  • GET the site_url HTML via HttpClient::get_bytes.
  • Parse the <head> for <link rel="alternate" type="application/rss+xml"> and type="application/atom+xml" (also accept application/json / feed+json). Use the lightweight tl HTML parser — do not pull a heavyweight DOM stack.
  • Resolve each href to an absolute URL against site_url (the url crate).
  • Map the type to feed_type ("rss" | "atom" | "json"), carry the title attr.
  • 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: cli agent.