• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

wb14123/twitter2mastodon: A tool to import posts from Twitter to Mastodon

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

wb14123/twitter2mastodon

开源软件地址(OpenSource Url):

https://github.com/wb14123/twitter2mastodon

开源编程语言(OpenSource Language):

Python 100.0%

开源软件介绍(OpenSource Introduction):

Twitter2Mastodon

This project can export Twitter posts to Mastodon. There are already some projects doing that. But this one will also change the post time for the imported post. Need to be able to access Mastodon's database in order to do that.

Usage

1. Clone this project.

2. Install dependencies:

pip install -r requirements.txt

3. Change the config

Change the fields in config.py.

4. Register Mastodon App and Login

Run this command:

python register_mastodon.py

This will register a Mastodon app called twitter_importer and login the user.

5. Export Twitter posts to Mastodon

mkdir tmp
python main.py

This will import all the posts from Twitter to Mastodon. The media attached in the posts will be downloaded to tmp/ and uploaded to Mastodon later.

This command may stuck and fail because of rate limit for Mastodon API. It will output the Twitter ID it's processing. So if you want to restart the porgram, change twitter_max_id in config.py to import from that tweet.

It will download all the tweets from the user first and store them in the memory. The reason is we want to reverse the timeline and import from the earliest one. So if you have a lot of tweets and a small memory, it may not be able to import.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
kawax/laravel-notification-mastodon发布时间:2022-08-18
下一篇:
vocalodon/dontwi发布时间:2022-08-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap