All Projects → bitkeks → mastodon-to-twitter

bitkeks / mastodon-to-twitter

Licence: other
Mas2tter - the Mastodon-to-Twitter Mirrorbot

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to mastodon-to-twitter

Magicmirror
🔮 ReactNative smart mirror project
Stars: ✭ 243 (+1004.55%)
Mutual labels:  mirror
addon-magicmirror
MagicMirror² - Home Assistant Community Add-ons
Stars: ✭ 40 (+81.82%)
Mutual labels:  mirror
magento1-open-source-patches
Magento Open Source 1.x patches mirror repository.
Stars: ✭ 38 (+72.73%)
Mutual labels:  mirror
mastomods
CSS tweaks and custom themes for Mastodon.
Stars: ✭ 95 (+331.82%)
Mutual labels:  mastodon
TootNet
Yet Another .NET Mastodon Library
Stars: ✭ 32 (+45.45%)
Mutual labels:  mastodon
mirror-proxy
Jenkins Update Center mirror proxy
Stars: ✭ 15 (-31.82%)
Mutual labels:  mirror
Bandersnatch
A PyPI mirror client according to PEP 381 http://www.python.org/dev/peps/pep-0381/
Stars: ✭ 221 (+904.55%)
Mutual labels:  mirror
homebrew-bottle-mirror
mirror tool to sync homebrew bottle files
Stars: ✭ 36 (+63.64%)
Mutual labels:  mirror
Team-Capture
Team-Capture - A multiplayer FPS game, inspired by games like Quake and TF2. Done in Unity
Stars: ✭ 81 (+268.18%)
Mutual labels:  mirror
soundstorm
The Federated Social Audio Platform
Stars: ✭ 26 (+18.18%)
Mutual labels:  mastodon
MirrorReflectionEffectForUGUI
A simple mirror reflection effect for a uGUI without reflection probes or shaders.
Stars: ✭ 99 (+350%)
Mutual labels:  mirror
go-ostatus
An OStatus library written in Go
Stars: ✭ 32 (+45.45%)
Mutual labels:  mastodon
vue-socials
💬 Social media share buttons and counts for Vue.js
Stars: ✭ 32 (+45.45%)
Mutual labels:  mastodon
LoaderX-Bot
Original repo - https://github.com/lzzy12/python-aria-mirror-bot
Stars: ✭ 59 (+168.18%)
Mutual labels:  mirror
mastible
An Ansible playbook to install Mastodon
Stars: ✭ 17 (-22.73%)
Mutual labels:  mastodon
Magicmirror
MagicMirror² is an open source modular smart mirror platform. With a growing list of installable modules, the MagicMirror² allows you to convert your hallway or bathroom mirror into your personal assistant.
Stars: ✭ 15,705 (+71286.36%)
Mutual labels:  mirror
madon
Golang Mastodon API library
Stars: ✭ 66 (+200%)
Mutual labels:  mastodon
shape-json
Module used to convert a flat json array into a nested json object with a predefined scheme
Stars: ✭ 31 (+40.91%)
Mutual labels:  mirror
masto.js
🐘 Mastodon API client for JavaScript, TypeScript, Node.js, browsers
Stars: ✭ 518 (+2254.55%)
Mutual labels:  mastodon
MstdnTimelinePreviewCard
mastodonのTLにPreviewCardを表示するやつ
Stars: ✭ 12 (-45.45%)
Mutual labels:  mastodon

Mas2tter - the Mastodon-to-Twitter Mirrorbot

This Python3 script loads the latest Toots from your Mastodon account and posts them on Twitter. Some formatting is done to keep the content of Tweets in 280 characters, possibly posting two Tweets.

You can choose to either link to your Toot so others can click through to your Mastodon profile (see screenshot below) or use the alternative plain text mirror. The config parameter link_to_mastodon is used for this.

Your Tweets will contain some of your original Hashtags. Set the config option tags_to_append for this.

demo Tweet

Setup

Fill the config values api_base_url and user_base_url as given in the example. The API base URL is most likely the root domain of your instance, the user base URL is a simple text string which is used to check Tweets that contain Mastodon URLs to your Toots. (Better have a look into the code, it gets clear there)

Changelog

Versions <v2.0.0 do not use the streaming API, but instead regularly pull the latest Toots made by a user and compares the locally saved Toot ID to find out, if new Toots were posted. If yes, they are cross-posted to Twitter.

Version v2.0.0 introduces the usage of the streaming API, meaning that Mas2tter listens for new Toots and acts based on events sent by the server. The old pull script is still available in sync_existing.py, it can be used to sync existing Toots which will not be seen by the stream listener. Please note that the script uses the old-style formatting.

Version v2.1.0 introduces multiple Tweets, if the character limit of 280 characters is exceeded. The Toot is then split in half (based on spaces between words) and two Tweets are posted.

Version v2.2.0 introduces command line arguments to use different config files and to enable debugging output. Exception handling was extended to hopefully handle more connection errors.

Libraries and tokens

This bot uses Python-Twitter and Mastodon.py. To set up the needed access keys/tokens follow the instructions there. Mas2tter has no running public instance to date. If you do not have the resources to set it up on your own, have a look at crossposter.masto.donte.com.br (Github repo).

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

More in LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].