Publish automagically to Twitter all your Mastodon posts!
- Python 3
- Postgresql server
- Mastodon user account
- Your personal Linux driven PC or laptop
Within Python Virtual Environment:
pip install -r requirements.txtto install needed libraries.
python db-setup.pyto setup and create new Postgresql database and needed table in it and setup your Mastodon's account RSS feed in the format 'https://your.mastodon.server/@your_user.rss'
python setup.pyto input and save your Twitter's key and access tokens. You can get your keys and tokens from Twitter Developer Platform
python mastodon-setup.pyto setup your Mastodon account access tokens.
Use your favourite scheduling method to set
python mastotuit.pyto run every minute.
29.9.2021 New Feature Added support to media files! mastotuit now gets all media files from Mastodon's post (if any) and publish them to Twitter together with your status update.
7.10.2021 New Feature Added thread support! If you create a thread in Mastodon mastotuit will create the same thread on Twitter.
13.10.2021 Upgraded Tweepy library to v4.1.0
13.10.2021 New Feature Added video upload support! If video properties are according Twitter rules it will be uploaded.
14.2.2022 Upgraded Tweepy library to v4.5.0
14.2.2022 New Feature Polls support! Now your Mastodon's polls are replicated to Twitter and they can vote them!