<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: zidingyizzz</title>
    <description>The latest articles on DEV Community by zidingyizzz (@zidingyizzz).</description>
    <link>https://dev.to/zidingyizzz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4249754%2F963532de-fc11-4a74-b997-8e03237ed53b.png</url>
      <title>DEV Community: zidingyizzz</title>
      <link>https://dev.to/zidingyizzz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zidingyizzz"/>
    <language>en</language>
    <item>
      <title>I spent a weekend on a bot that turns 40 minutes of feeds into a 40-second digest</title>
      <dc:creator>zidingyizzz</dc:creator>
      <pubDate>Tue, 17 Nov 2026 12:00:01 +0000</pubDate>
      <link>https://dev.to/zidingyizzz/i-spent-a-weekend-on-a-bot-that-turns-40-minutes-of-feeds-into-a-40-second-digest-586a</link>
      <guid>https://dev.to/zidingyizzz/i-spent-a-weekend-on-a-bot-that-turns-40-minutes-of-feeds-into-a-40-second-digest-586a</guid>
      <description>&lt;p&gt;A full round goes like this: phone, news apps, an RSS reader, a couple of group chats, a price page for something you're waiting on. Forty minutes later, maybe three items actually stuck.&lt;/p&gt;

&lt;p&gt;The problem wasn't the sources. It was this: 90% of any feed is noise &lt;em&gt;for me specifically&lt;/em&gt;, and the 10% worth reading sits in five different apps. Each one wants its five minutes.&lt;/p&gt;

&lt;p&gt;So I wrote &lt;a href="https://github.com/zidingyizzz/briefbot" rel="noopener noreferrer"&gt;BriefBot&lt;/a&gt;. One YAML file says where to watch, what matters, and where to deliver. Every morning at 8 it sends me one digest. I'm done in 40 seconds. Mine's been going out daily since last week — the same bot, the same config, zero babysitting.&lt;/p&gt;

&lt;p&gt;This post is the 5-minute version of getting it running for free on GitHub Actions. No server, no credit card.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it actually does
&lt;/h2&gt;

&lt;p&gt;Three blocks in one config file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;my-morning&lt;/span&gt;
    &lt;span class="na"&gt;sources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;            &lt;span class="c1"&gt;# where to watch
&lt;/span&gt;      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;rss&lt;/span&gt;
        &lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://hnrss.org/frontpage?points=200&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;static_json&lt;/span&gt;
        &lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://api.github.com/repos/numpy/numpy/releases&lt;/span&gt;
        &lt;span class="na"&gt;uid_key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;tag_name&lt;/span&gt;
        &lt;span class="na"&gt;fields&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;title:&lt;/span&gt; &lt;span class="s2"&gt;"{tag_name}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;date:&lt;/span&gt; &lt;span class="s2"&gt;"{published_at}"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="na"&gt;digest&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;             &lt;span class="c1"&gt;# what to say
&lt;/span&gt;      &lt;span class="na"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;llm&lt;/span&gt;         &lt;span class="c1"&gt;# or "plain" — works with no API key at all
&lt;/span&gt;      &lt;span class="na"&gt;system_prompt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Only items relevant to a Python dev. One line each."&lt;/span&gt;
    &lt;span class="na"&gt;channels&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;           &lt;span class="c1"&gt;# where to deliver
&lt;/span&gt;      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;telegram&lt;/span&gt;
        &lt;span class="na"&gt;bot_token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${TELEGRAM_BOT_TOKEN}&lt;/span&gt;
        &lt;span class="na"&gt;chat_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${TELEGRAM_CHAT_ID}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's the whole idea. Sources → state diff → digest → channels. It remembers what it already sent (a small state file), so you only hear about &lt;em&gt;new&lt;/em&gt; things — a release, a price drop, a new chapter, whatever you point it at.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;page_select&lt;/code&gt; watches a plain web page with CSS selectors, so "no API, no RSS" sites work too.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 5-minute deploy (free tier)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Fork or push the repo&lt;/strong&gt; — fork &lt;a href="https://github.com/zidingyizzz/briefbot" rel="noopener noreferrer"&gt;briefbot&lt;/a&gt;, or push the code into a new &lt;strong&gt;private&lt;/strong&gt; repo if you prefer (GitHub doesn't allow private forks; secrets live in env vars either way).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Copy &lt;code&gt;config.example.yaml&lt;/code&gt; to &lt;code&gt;config.yaml&lt;/code&gt;&lt;/strong&gt;, edit the jobs. Start with two sources, not ten.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add secrets&lt;/strong&gt; in repo Settings → Secrets and variables → Actions: &lt;code&gt;OPENAI_API_KEY&lt;/code&gt; (optional — see below), &lt;code&gt;TELEGRAM_BOT_TOKEN&lt;/code&gt;, &lt;code&gt;TELEGRAM_CHAT_ID&lt;/code&gt;. A Telegram bot takes 3 minutes with &lt;a class="mentioned-user" href="https://dev.to/botfather"&gt;@botfather&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The bundled workflow&lt;/strong&gt; (&lt;code&gt;.github/workflows/briefbot.yml&lt;/code&gt;) runs daily at 08:00 Beijing time and caches &lt;code&gt;.state/&lt;/code&gt; between runs so nothing gets re-sent. Edit the &lt;code&gt;cron:&lt;/code&gt; line for your timezone, or fire it once manually from the Actions tab to see it work (on a fresh fork, Actions is disabled until you enable it there).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No API key? Set &lt;code&gt;mode: plain&lt;/code&gt;. You get a clean rule-based digest — titles, new-field diffs, no LLM. The LLM part is optional and bring-your-own: any OpenAI-compatible endpoint, including a local Ollama.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I trust it with my mornings
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The whole thing is under 1,000 lines of readable Python with 4 dependencies — you can read every line in one sitting. I don't like black boxes touching my feeds.&lt;/li&gt;
&lt;li&gt;36 offline tests, CI green on every push.&lt;/li&gt;
&lt;li&gt;If one source fails, the job still runs with the rest and logs an &lt;code&gt;error=&lt;/code&gt; line. A failed delivery rolls back instead of losing items.&lt;/li&gt;
&lt;li&gt;In three days of scheduled runs: 9 runs, 0 errors, 99 items deduped across 4 sources.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  If you'd rather not set it up at all
&lt;/h2&gt;

&lt;p&gt;There's a one-time $19 launch kit — same code, packaged with walkthrough docs and ready configs. Link's in the repo README. The free path above is complete on its own; the kit is for people who'd rather not fiddle with any of it.&lt;/p&gt;




&lt;p&gt;Morning round now: open Telegram, one message, 40 seconds, done. What I do with the other 39 minutes 20 is nobody's business but mine.&lt;/p&gt;

&lt;p&gt;What would you point it at? Genuinely curious — the weirdest source ideas make the best configs.&lt;/p&gt;

</description>
      <category>python</category>
      <category>automation</category>
      <category>productivity</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
