Skip to main content

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

  1. 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.
  2. Find an RSS feed or two that you are interested in (did you know that Mastodon and Bluesky support RSS feeds?).
  3. Create a text document with each RSS feed separated by a new line (see urls.txt in this repository as an example).
  4. 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 --render and a directory for logging. Refer to --help for more information.

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.

  1. (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.
  2. Install via python -m pip install discord-rss.
  3. 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

discord_rss-0.0.7.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

discord_rss-0.0.7-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

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

Hashes for discord_rss-0.0.7.tar.gz
Algorithm Hash digest
SHA256 c97b23384d82ab8d372f0766356a46c52d34498096a926d9f82b038071906f8b
MD5 2e07eaa0e6736777221fa5c720bb362d
BLAKE2b-256 bee963e070aefd3a2cb0a72724e42665cad4d03eed020a185ecd7cc857a4a6d8

See more details on using hashes here.

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

Hashes for discord_rss-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7abd1d506fc232c54d0bb4e6a2ffca0965c6b7485a04fdefd65142a06aec1124
MD5 cee7ca4935b6eada3c5bfaecf22c61e4
BLAKE2b-256 ba25ef1e59290d41ed64280805e4407725082ef809c3364be0649c7dd01e451e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page