rss-discord/README.md

15 lines
630 B
Markdown
Raw Permalink Normal View History

2024-05-21 13:26:29 +02:00
# rss-discord
2024-05-21 13:26:39 +02:00
Python script using Discord webhooks and Feedparser to post updates fetched via RSS feeds to a specific channel.
2024-05-21 13:26:29 +02:00
2024-05-21 13:26:39 +02:00
Depends on: feedparser which can be installed using pip for Python
Just edit line #4 with the webhook URL of the channel you want it to post to and line #6 with the URL of the RSS feed
The script runs only once and writes a file last_posted.txt to the directory it's stored in.
In order to have it running "all the time" I suggest using something like a scheduled task in Windows or crontab in Linux setup like this:
*/5 * * * * python3 /home/user/rss.py
which will run the script every 5 minutes