sfeed-simple-feed-parser.html - www.codemadness.org - www.codemadness.org saait content files
(HTM) git clone git://git.codemadness.org/www.codemadness.org
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
sfeed-simple-feed-parser.html (6503B)
---
1 <!DOCTYPE html>
2 <html dir="ltr" lang="en">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5 <meta http-equiv="Content-Language" content="en" />
6 <meta name="viewport" content="width=device-width" />
7 <meta name="keywords" content="sfeed, RSS, atom, parser, reader" />
8 <meta name="description" content="Sfeed is a simple RSS and Atom parser (and format programs to add reader functionality)" />
9 <meta name="author" content="Hiltjo" />
10 <meta name="generator" content="Static content generated using saait: https://codemadness.org/saait.html" />
11 <title>Sfeed: simple RSS and Atom parser - Codemadness</title>
12 <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
13 <link rel="stylesheet" href="print.css" type="text/css" media="print" />
14 <link rel="alternate" href="atom.xml" type="application/atom+xml" title="Codemadness Atom Feed" />
15 <link rel="alternate" href="atom_content.xml" type="application/atom+xml" title="Codemadness Atom Feed with content" />
16 <link rel="icon" href="/favicon.png" type="image/png" />
17 </head>
18 <body>
19 <nav id="menuwrap">
20 <table id="menu" width="100%" border="0">
21 <tr>
22 <td id="links" align="left">
23 <a href="index.html">Blog</a> |
24 <a href="/git/" title="Git repository with some of my projects">Git</a> |
25 <a href="/releases/">Releases</a> |
26 <a href="gopher://codemadness.org">Gopherhole</a>
27 </td>
28 <td id="links-contact" align="right">
29 <span class="hidden"> | </span>
30 <a href="feeds.html">Feeds</a> |
31 <a href="pgp.asc">PGP</a> |
32 <a href="mailto:hiltjo@AT@codemadness.DOT.org">Mail</a>
33 </td>
34 </tr>
35 </table>
36 </nav>
37 <hr class="hidden" />
38 <main id="mainwrap">
39 <div id="main">
40 <article>
41 <header>
42 <h1>Sfeed: simple RSS and Atom parser</h1>
43 <p>
44 <strong>Last modification on </strong> <time>2022-11-05</time>
45 </p>
46 </header>
47
48 <p>Sfeed is a RSS and Atom parser (and some format programs).</p>
49 <p>It converts RSS or Atom feeds from XML to a TAB-separated file. There are
50 formatting programs included to convert this TAB-separated format to various
51 other formats. There are also some programs and scripts included to import and
52 export OPML and to fetch, filter, merge and order feed items.</p>
53 <p>For the most (up-to-date) information see the <a href="/git/sfeed/file/README.html">README</a>.</p>
54 <h2>Clone</h2>
55 <pre><code>git clone git://git.codemadness.org/sfeed
56 </code></pre>
57 <h2>Browse</h2>
58 <p>You can browse the source-code at:</p>
59 <ul>
60 <li><a href="https://git.codemadness.org/sfeed/">https://git.codemadness.org/sfeed/</a></li>
61 <li><a href="gopher://codemadness.org/1/git/sfeed">gopher://codemadness.org/1/git/sfeed</a></li>
62 </ul>
63 <h2>Download releases</h2>
64 <p>Releases are available at:</p>
65 <ul>
66 <li><a href="https://codemadness.org/releases/sfeed/">https://codemadness.org/releases/sfeed/</a></li>
67 <li><a href="gopher://codemadness.org/1/releases/sfeed">gopher://codemadness.org/1/releases/sfeed</a></li>
68 </ul>
69 <h2>Build and install</h2>
70 <pre><code>$ make
71 # make install
72 </code></pre>
73 <h2>Screenshot and examples</h2>
74 <p><a href="downloads/screenshots/sfeed-screenshot.png"><img src="downloads/screenshots/sfeed-thumb.png" alt="Screenshot of sfeed piped to sfeed_plain using dmenu in vertical-list mode" width="400" height="232" loading="lazy" /></a></p>
75 <p>The above screenshot uses the sfeed_plain format program with <a href="https://tools.suckless.org/dmenu/">dmenu</a>. This
76 program outputs the feed items in a compact way per line as plain-text to
77 stdout. The dmenu program reads these lines from stdin and displays them as a
78 X11 list menu. When an item is selected in dmenu it prints this item to stdout.
79 A simple written script can then filter for the URL in this output and do some
80 action, like opening it in some browser or open a podcast in your music player.</p>
81 <p>For example:</p>
82 <pre><code>#!/bin/sh
83 url=$(sfeed_plain "$HOME/.sfeed/feeds/"* | dmenu -l 35 -i | \
84 sed -n 's@^.* \([a-zA-Z]*://\)\(.*\)$@\1\2@p')
85 test -n "${url}" && $BROWSER "${url}"
86 </code></pre>
87 <p>However this is just one way to format and interact with feed items.
88 See also the README for other practical examples.</p>
89 <p>Below are some examples of output that are supported by the included format
90 programs:</p>
91 <ul>
92 <li><a href="downloads/sfeed/plain/feeds.txt">plain text (UTF-8)</a></li>
93 <li><a href="downloads/sfeed/atom/feeds.xml">atom</a></li>
94 <li>gopher</li>
95 <li><a href="downloads/sfeed/html/feeds.html">HTML (CSS)</a></li>
96 <li><a href="downloads/sfeed/frames/index.html">HTML frames</a></li>
97 <li><a href="jsonfeed_content.json">JSON Feed</a></li>
98 <li><a href="downloads/sfeed/mbox/feeds.mbox">mbox</a></li>
99 <li><a href="downloads/sfeed/twtxt/twtxt.txt">twtxt</a></li>
100 </ul>
101 <p>There is also a curses UI front-end, see the page <a href="sfeed_curses.html">sfeed_curses</a>.
102 It is now part of sfeed.</p>
103 <h2>Videos</h2>
104 <p>Here are some videos of other people showcasing some of the functionalities of
105 sfeed, sfeed_plain and sfeed_curses. To the creators: thanks for making these!</p>
106 <ul>
107 <li><a href="https://www.youtube.com/watch?v=RnuY32DP9jU">sfeed: RSS/Atom Feeds without the Suck (Youtube)</a><br />
108 by <a href="https://www.youtube.com/channel/UCQQB104oMOos758GTOdx_kQ">noocsharp</a>
109 <a href="downloads/sfeed/videos/sfeed_without_the_suck.mp4">(mirror)</a><br />
110 Video published on March 8 2020.</li>
111 <li><a href="https://www.youtube.com/watch?v=ok8k639GoRU">Sfeed - news in the terminal with minimalism (Youtube)</a><br />
112 by <a href="https://www.youtube.com/channel/UCJetJ7nDNLlEzDLXv7KIo0w">Gavin Freeborn</a>
113 <a href="downloads/sfeed/videos/sfeed_news_in_terminal.mp4">(mirror)</a><br />
114 Video published on January 15 2021.</li>
115 <li><a href="https://www.youtube.com/watch?v=xMkW4iJzot0">Sfeed - Peak Minimal RSS Feed Reader (Youtube)</a><br />
116 by <a href="https://www.youtube.com/channel/UCld68syR8Wi-GY_n4CaoJGA">Brodie Robertson</a>
117 <a href="downloads/sfeed/videos/sfeed_minimalism.mp4">(mirror)</a><br />
118 Video published on February 23 2021.</li>
119 <li><a href="https://www.youtube.com/watch?v=O8x0MAyqvt0">RSS with sfeed, fdm, and mblaze! (Youtube)</a><br />
120 by <a href="https://www.youtube.com/channel/UCz_u0h4usMbnFsIHSVdjUQw">Joseph Choe</a>
121 <a href="downloads/sfeed/videos/rss_with_sfeed_fdm_and_mblaze.mp4">(mirror)</a><br />
122 Website: <a href="https://josephchoe.com/rss-terminal">https://josephchoe.com/rss-terminal</a><br />
123 Video published on 4 November 2022.</li>
124 </ul>
125
126 </article>
127 </div>
128 </main>
129 </body>
130 </html>