A special bot that mirrors birdsite users on a mastodon instance.

Lertsenem 4a1accf676 Less infos in logs 1 year ago
pycolog @ da2fc7b3d6 ac8c3fd15a Adding pycolog as submodule 1 year ago
twitrssme @ 27fd76c1dc 8c9e6598a3 Adding twitrssme as submodule 1 year ago
.gitignore 4b6852db3f Update gitignore 1 year ago
.gitmodules 8c9e6598a3 Adding twitrssme as submodule 1 year ago
Dockerfile 071f137e93 Adding dockerfiles 1 year ago
LICENSE d33c38cdb8 Initial commit 1 year ago
README.md 5cabbe7c6e Change README 1 year ago
docker.run.sh 3201ab4840 Docker entry point permissions 1 year ago
main.py 4a1accf676 Less infos in logs 1 year ago
requirements.txt 7815113bdb first commit 1 year ago

README.md

Birdlink Bot

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:

  • twitter tracking links (t.co) are dereferenced
  • twitter hosted pictures are retrieved and uploaded to mastodon

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).