FEAD(1)
π FEAD(1) β like, the fead manual page, bestie
okay so first things first: the command is fead, it lives in the User Commands section of the manual, and it is literally an advert generator that eats web feeds for breakfast. no cap. π¦
β¨ NAME β¨
fead β advert generator from web feeds πΈ
π SYNOPSIS π
fead [OPTION]...
π«Ά DESCRIPTION π«Ά
Generate adverts from web feeds. that's the whole vibe. you give it feeds, it gives you ads. iconic behavior honestly π
π OPTIONS π
-h,--helpβ shows this help message and then exits, like a polite queen π-v,--versionβ shows the program's version number and then exits π-F,--feedsPATH β a file containing newline-separated web feed URLs (one URL per line, slay) π-f,--feedURL β an additional web feed URL; you can use this one multiple times, so stack 'em up π§-s,--strictβ abort the whole thing when it fails to fetch or parse a web feed. no silent failures, we die with dignity π-n,--countN β the maximum number of ads in total (defaults to3)-p,--per-feedN β the maximum number of ads per feed (defaults to1)-l,--lengthN β the maximum summary length (defaults to256)-t,--templatePATH β the template file (defaults to stdin)-o,--outputPATH β the output file (defaults to stdout)
π¨ lowkey important: any use of-fbefore-Fis ignored. order matters, bestie,-Ffirst or it's giving nothing.
β TEMPLATE β
the template gets used by Python str.format to generate each advert. it can contain the following fields, and they're delimited by braces ({ and }) β so yes, curly braces, not vibes π
source_titleβ the title of the web feedsource_linkβ the URL to the feed's websitetitleβ the title of the feed itemlinkβ the URL to the itemtimeβ the publication timesummaryβ the truncated content or description
and about that publication time: it's a Python datetime.datetime object, which supports at least C89 format codes, e.g. {time:%Y-%m-%d}. so you can format it however you want, periodt πβ¨
π EXAMPLES π
okay so given these URLs in a feeds file:
https://adol.pw/index.xml
https://cnx.gdn/feed.xml
https://xrvs.net/index.xml
you can generate an advertisement of the two latest blogs among them, along with articles by Drew DeVault, via the following command. it's giving main character energy fr fr:
echo "<article>
<h3><a href='{link}'>{title}</a></h3>
{summary}—<a href='{source_link}'>{source_title}</a>,
{time:%F}
</article>" | fead -F feeds -f https://drewdevault.com/blog/index.xml
-n 2
π REPORTING BUGS π
issues should be reported to <~cnx/misc@lists.sr.ht>. don't suffer in silence, tell the maintainers π«Ά
π¦ SEE ALSO π¦
and that's the whole page π this was fead version 1.0.0, dated January 1980 (yes really, that date is not a typo, it's just vintage β¨). mwah, go generate some ads ππ₯
π¦ where this page comes from
- nixos 26.05: fead 1.0.0
- nixpkgs unstable: fead 1.0.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms