Publish to your Twitter account all your Mastodon posts, automagically. mastotuit replicates to Twitter all your Mastodon public text only posts but also your posts with images, with videos and even your polls!
Anar al arxiu
spla d344117604 Merge branch 'mr-origin-1' into 'master'
Example refactor  for`compose_tweet` method.

See merge request spla/mastotuit!2
2021-10-19 13:42:12 +00:00
db-setup.py Optimized code (-22 lines) and removed unneeded table feeds 2021-10-15 14:02:11 +02:00
LICENSE Added LICENSE 2021-09-10 20:50:33 +02:00
mastodon-setup.py Added thread support 2021-10-07 20:23:17 +02:00
mastotuit.py Fixup 2021-10-16 13:58:41 +00:00
README.md Updated 2021-10-13 13:41:28 +02:00
requirements.txt Upgraded Tweepy to v4.1.0 and added video support 2021-10-13 13:32:26 +02:00
setup.py First mastotuit release! 2021-09-10 20:32:11 +02:00

mastotuit

Publish automagically to Twitter all your Mastodon posts!

Dependencies

  • Python 3
  • Postgresql server
  • Mastodon user account
  • Your personal Linux driven PC or laptop

Usage:

Within Python Virtual Environment:

  1. Run pip install -r requirements.txt to install needed libraries.

  2. Run python db-setup.py to 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'

  3. Run python setup.py to input and save your Twitter's key and access tokens. You can get your keys and tokens from Twitter Developer Platform

  4. Run python mastodon-setup.py to setup your Mastodon account access tokens.

  5. Use your favourite scheduling method to set python mastotuit.py to 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.