在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):klausi/mastodon-twitter-sync开源软件地址(OpenSource Url):https://github.com/klausi/mastodon-twitter-sync开源编程语言(OpenSource Language):Rust 99.6%开源软件介绍(OpenSource Introduction):Mastodon Twitter SyncThis tool synchronizes posts from Mastodon to Twitter and back. It does not matter where you post your stuff - it will get synchronized to the other! Synchronization Features
Old data deletion feature for better privacyOptionally configuration options can be set to delete posts/favourites from your Mastodon and Twitter accounts that are older than 90 days. Installation and executionUnfortunately I'm not able to provide precompiled portable Linux binaries because of different OpenSSL versions in different Linux distributions. Let me know if you have ideas how to solve that! There are 2 options how to run mastodon-twitter-sync:
Compiling with cargo (recommended)This will install Rust and setup API access to Mastodon and Twitter. Follow the text instructions to enter API keys.
Installing with DockerYou need to have Docker installed on your system, then you can use the published Docker image. The following commands create a directory where the settings file and cache files will be stored. Then we use a Docker volume from that directory to store them persistently.
Follow the text instructions to enter API keys. Use that Docker command as a replacement for ConfigurationAll configuration options are created in a Enable automatic status/favourite deletion with config options. Example: [mastodon]
# Delete Mastodon status posts that are older than 90 days
delete_older_statuses = true
# Delete Mastodon favourites that are older than 90 days
delete_older_favs = true
# Also sync reblogs (boosts).
sync_reblogs = true
# Restrict sync to a hashtag (leave empty to sync all posts)
sync_hashtag = "#sync"
[mastodon.app]
base = "https://mastodon.social"
client_id = "XXXXXXXXXXX"
client_secret = "XXXXXXXXXXX"
redirect = "urn:ietf:wg:oauth:2.0:oob"
token = "XXXXXXXXXXX"
[twitter]
consumer_key = "XXXXXXXXXXX"
consumer_secret = "XXXXXXXXXXX"
access_token = "XXXXXXXXXXX"
access_token_secret = "XXXXXXXXXXX"
user_id = 1234567890
user_name = "example"
# Delete Twitter status posts that are older than 90 days
delete_older_statuses = true
# Delete Twitter likes that are older than 90 days
delete_older_favs = true
# Also sync retweets.
sync_retweets = true
# Restrict sync to a hashtag (leave empty to sync all posts)
sync_hashtag = "#sync" Preview what's going to be syncedYou can preview what's going to be synced using the
This is running a sync without actually posting or deleting anything. Skip existing posts and only sync new postsIf you already have posts in one or both of your accounts and you want to exclude them from being synced you can use
Note that combining Periodic executionEvery run of the program only synchronizes the accounts once. Use Cron to run it periodically, recommended every 10 minutes:
Or for the Docker version:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论