A special bot that mirrors birdsite users on a mastodon instance.
|
6 years ago | |
---|---|---|
pycolog @ da2fc7b3d6 | 6 years ago | |
twitrssme @ 27fd76c1dc | 6 years ago | |
.gitignore | 6 years ago | |
.gitmodules | 6 years ago | |
Dockerfile | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
docker.run.sh | 6 years ago | |
main.py | 6 years ago | |
requirements.txt | 6 years ago |
A small python script to replicate tweets on a mastodon instance.
Use the 'add' command to add a new account to mirror. The account must exist with the same handle on twitter and on the Mastodon instance. The password for the account will be asked.
Use the 'run' command to check all mirrored accounts and post new tweets on the Mastodon instance.
It gets the tweets from RSS available at http://twitrss.me, then does some cleanup on the content:
A json file is used to keep track of tweets than have been tooted.
This script should be in use for the https://birdsite.link instance
The script is simply called by a cron job and can run on any server (does not have to be on the mastodon instance server).