This script checks a list of RSS feeds for new entries and posts them to a Mastodon account using the Mastodon API.
- Clone this repository to your local machine.
- Create a virtual environment and activate it.
- Install the required packages using
pip install -r requirements.txt
. - Create a Mastodon account and obtain an access token and a client secret.
- Create a
mastodon_credentials.json
file with the following format:
{
"client_id": "feedostodon",
"client_secret": "your_client_secret_here",
"access_token": "your_access_token_here",
"api_base_url": "https://your.instance.url"
}
- Create a
feed_urls.json
file with a list of RSS feed URLs to check.
[
"https://example-one.com/feed",
"https://example-two.com/rss"
]
- Run the script using
python main.py
.
The script will check each feed for new entries and post them to the Mastodon account specified in mastodon_credentials.json
. The script will remember the last time it checked each feed in last_checked_times.json
and only post new entries.
This script is licensed under the MIT License. See LICENSE
for more information.