Publish RSS feeds to Mastodon
This is a simple bot I created to read a number of RSS feeds, and publish the result to a Mastodon user.
- The script is scheduled via GitHub Actions and runs every 3 hours.
- It reads the user's timeline via an API call, to determine the last time a status update was performed.
- Using the feedparser library, a list of RSS feeds are read.
- Any post that is greater than the last time a status update was made, is then posted to Mastodon through an API call.
The config.yaml is split up in different sections, allowing the bot to post multiple feeds to multiple Mastodon channels.
Environment variables *_ENDPOINT
and *_ACCESS_KEY
will be used. Create a set for each section in the config file.
{section}_ENDPOINT
{section}_ACCESS_KEY