tootbot.py
A small python 3.x script to replicate tweets on a mastodon account
...Forked from https://github.com/cquest/tootbot Specialized in RSS feed, in particular from Nitter (https://nitter.net - https://github.com/zedeus/nitter)
It gets the tweets from RSS available at https://nitter.net, then does some cleanup on the content:
twitter tracking links (t.co) are dereferenced
twitter hosted pictures are retrieved and uploaded to mastodon
the tweets from RSS source's are joined based on the domain name to avoid duplicates
It can also toot RSS/atom feeds (see cron-example.sh).
A sqlite database is used to keep track of tweets than have been tooted.
The script is simply called by a cron job and can run on any server.