Polls RSS feeds and posts updates to Discord via a webhook.
Project description
Discord RSS
Polls RSS feeds and posts updates to Discord via a webhook.
Description
This is a simple Python application which gathers RSS feeds from a text file, polls them occasionally, and outputs new entries to a Discord channel via a Discord Webhook.
The scope of this project very limited, and was created specifically for use in our Discord server. If you wants something more advanced check out MonitoRSS or discord-rss-bot.
Prerequisites
- Python 3.14.0 (likely works on later versions - untested)
Usage
- Create a Discord webhook for a channel in your server:
- Right-click the channel.
- Select Edit Channel.
- Go to Integrations/Webhooks and press the New Webhook button.
- Copy the webhook URL.
- You can read more about webhooks in Discord's documentation.
- Find an RSS feed or two that you are interested in (did you know that Mastodon and Bluesky support RSS feeds?).
- Create a text document with each RSS feed separated by a new line (see
urls.txtin this repository as an example). - Run the application and pass it your text file and webhook URL:
- Example when installed via PyPi package:
python -m discord_rss <path/to/your/textfile.txt> --webhook <your webhook URL> - There are additional options available, such as rendering real-time information about what the application is up to with
--renderand a directory for logging. Refer to--helpfor more information.
- Example when installed via PyPi package:
Installation (via PyPi package)
This assumes you have a supported Python version installed and accessible at python in a terminal at the root of the project.
- (Recommended) Create a virtual environment:
- A virtual environment ensures dependencies are not installed system-wide which might cause issues.
- Follow the instructions in the Python docs for your system/shell.
- Activate the virtual environment, then proceed with the next steps.
- Install via
python -m pip install discord-rss. - Verify your installation via
python -m discord_rss --help. You should see some helpful text.
Updating PyPi package
This makes the same assumptions about python being available in your terminal as in the previous section.
You must have a PyPi account with publishing rights (obviously).
python -m pip install --upgrade build
python -m pip install --upgrade twine
python -m build
python -m twine upload dist/*
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file discord_rss-0.0.7.tar.gz.
File metadata
- Download URL: discord_rss-0.0.7.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c97b23384d82ab8d372f0766356a46c52d34498096a926d9f82b038071906f8b
|
|
| MD5 |
2e07eaa0e6736777221fa5c720bb362d
|
|
| BLAKE2b-256 |
bee963e070aefd3a2cb0a72724e42665cad4d03eed020a185ecd7cc857a4a6d8
|
File details
Details for the file discord_rss-0.0.7-py3-none-any.whl.
File metadata
- Download URL: discord_rss-0.0.7-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7abd1d506fc232c54d0bb4e6a2ffca0965c6b7485a04fdefd65142a06aec1124
|
|
| MD5 |
cee7ca4935b6eada3c5bfaecf22c61e4
|
|
| BLAKE2b-256 |
ba25ef1e59290d41ed64280805e4407725082ef809c3364be0649c7dd01e451e
|