// free agents / rss-to-discord
📡 RSS to Discord
“Watch a few RSS feeds and post new items that match my keywords into a Discord channel.”
Free, no sign-up. MIT licence. Python standard library only, so there's nothing to pip install.
What it does
Watches any RSS or Atom feeds (blogs, subreddits, YouTube channels, patch notes, Hacker News) and posts new matching items to Discord, Telegram or Slack. The first run just remembers what's already there, so your channel doesn't get flooded.
What you need
- Python 3.9+ (no extra packages) or n8n
- Where to post: a Discord webhook URL, a Telegram bot token + chat ID (from @BotFather), or a Slack incoming webhook URL (any one, or several; Telegram and Slack are in the Python script)
5-minute setup
Python
- Install Python 3.9+ and unzip the download.
- Try it with no accounts:
python3 rss_to_discord.py --dry-run - Copy
.env.exampleto.envand fill it in. - Run:
set -a; . ./.env; set +a; python3 rss_to_discord.py(Windows steps in the README).
n8n (no code)
- Workflows, then Import from file, then
rss-to-discord.n8n.json. - Follow the yellow “Read me” note (credentials or webhook).
- Test workflow, then switch it to Active.
Run it on a schedule
Every 15 minutes with cron:
*/15 * * * * cd /path/to/rss-to-discord && set -a && . ./.env && set +a && python3 rss_to_discord.py >> run.log 2>&1On Windows use Task Scheduler. With n8n, the Schedule node does it for you.
Settings
| Variable | What it does |
|---|---|
FEEDS | Comma-separated feed URLs (YouTube: https://www.youtube.com/feeds/videos.xml?channel_id=...) |
KEYWORDS | Comma-separated, case-insensitive; empty = everything |
EXCLUDE | Optional: skip items whose title or link contains any of these, e.g. -rc,beta,alpha |
TITLE_ONLY | Optional: 1 = match KEYWORDS in the title only (Reddit search feeds match the post text too) |
FEED_PAUSE | Seconds between feeds, default 3 (Reddit answers 429 to fast back-to-back requests) |
DISCORD_WEBHOOK_URL | Your Discord webhook (optional if you use Telegram or Slack) |
TELEGRAM_BOT_TOKEN / TELEGRAM_CHAT_ID | Optional: Telegram bot token from @BotFather and the chat, group or channel ID (or @channelname) to post to |
SLACK_WEBHOOK_URL | Optional: Slack incoming webhook URL |
MAX_PER_RUN | Cap per run, default 10 |
What we tested
- Ran against live Hacker News and Rock Paper Shotgun feeds with keyword filters.
- First run remembered 20 items and posted nothing; a later run posted only the new ones to a mock Discord webhook.
- Handles Discord rate limits (HTTP 429, then retry).
- 18 Oct 2026: added Telegram and Slack outputs. Tested against mock Discord, Telegram Bot API and Slack webhook servers: same item posted once to each, Telegram 429 retry_after honoured, keyword filter and first-run seeding unchanged.
- 18 Oct 2026: added EXCLUDE (skip items whose title or link contains a word, e.g. -rc for GitHub pre-releases). Tested on ollama's live releases.atom with a mock Telegram API: release candidates and a pre-release titled with the final version were skipped, 2 real releases sent once after a 429 retry, no repeats.
- 18 Oct 2026: added TITLE_ONLY, a pause between feeds and one retry when a feed answers 429. On live Reddit search feeds (r/selfhosted search for telegram), only 3 of the 25 results had the word in the title (the rest matched on the post text); TITLE_ONLY=1 kept just those 3. Three Reddit feeds in one run, 3 s apart, fetched without a 429 (fetched back-to-back, Reddit refused the second feed). Telegram-only run against a mock Bot API: 2 new posts sent once after a 429 retry, no repeats.
- n8n workflow imported and run end to end in a real n8n install (Discord mocked).
- 13 Nov 2026 fix: a failed post (webhook answering 404) no longer stops the run: the other items still go out, only the failed one is retried next run (posted once, no repeats), and the run exits 1 so cron or a scheduler can flag it. Titles now keep text like <tips> or a < b (before, anything in angle brackets was dropped); only formatting tags like <b> are removed. Tested with a local feed and a Slack webhook stand-in.
- 15 Nov 2026: a --dry-run run (or one with no Discord, Telegram or Slack set) now ends with "N new matching item(s) would be posted" instead of "posted", and still saves nothing. Tested with a local feed and a Slack webhook stand-in: dry run printed both items and wrote no state; a real run posted both once; a first run still remembers and posts nothing.
- 16 Oct 2026 fix: the n8n file's 'Only new' step had a wrong setting and could repost old items. Fixed and re-tested as an active workflow. Please re-download if you got it earlier.
Honest limits
- Reddit often rate-limits feed readers (HTTP 429). The script skips it and tries again next run.
- Keyword matching is plain text matching, not AI.
- n8n version: the first run posts everything currently in the feeds (our test posted 90). Run it once with the Discord node disabled first.
- Telegram and Slack work in the Python script; the n8n workflow posts to Discord (swap its last node for n8n's Telegram or Slack node).
Related guides
- n8n RSS to Discord: post new feed items with keyword filters
- Post new YouTube videos to Discord automatically (free, no bot)
- n8n: stop posting the same item twice (Remove Duplicates across executions)
- Get a Discord or email alert when a keyword is mentioned on Reddit (free, no API key)
- Send GitHub releases, issues and pull requests to Discord (no bot)
- Send RSS feeds to Telegram with a keyword filter (free, no bot hosting)
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- YouTube new video notifications in Telegram (free, with or without Shorts)
- GitHub release notifications in Telegram (free, skip pre-releases)
Want one built for your task?
Describe it in one sentence. We build it, test it and email it to you, usually within 24h. Free while we're in beta.