Skip to content
python bot to clone tweets to a mastodon account
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A small python 3.x script to replicate tweets on a mastodon account.

The script only need mastodon login/pass to post toots.

It gets the tweets from RSS available at, then does some cleanup on the content:

  • twitter tracking links ( are dereferenced
  • twitter hosted pictures are retrieved and uploaded to mastodon

It can also toot RSS/atom feeds (see

A sqlite database is used to keep track of tweets than have been tooted.

This script is in use for a few accounts:

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


# clone this repo
git clone
cd tootbot

# install required python modules
pip3 install -r requirements.txt


python3 <twitter_pseudo> <mastodon_account> <mastodon_password> <mastodon_domain>


python3 geonym_fr **password**

It's up to you to add this in your crontab :)

With a plain RSS/atom feed:

python3 **password** 2 "#dataset #opendata #datagouvfr"

You can’t perform that action at this time.