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

kensanata/mastotool: Saves the chain of Atom feeds for your Mastodon account and ...

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

开源软件名称(OpenSource Name):

kensanata/mastotool

开源软件地址(OpenSource Url):

https://github.com/kensanata/mastotool

开源编程语言(OpenSource Language):

Python 100.0%

开源软件介绍(OpenSource Introduction):

Mastotool "Atom"

After a while, you need to be able to back up your Mastodon content, and there is currently no way to get anything except your follow/block/mute lists.

This tool downloads all your posts it finds via the public Atom feed. Sadly, these are not all of your posts, due to a bug. You will have to resort to screen scraping in order to do this. A better alternative would be to use the Mastodon API to get all of your toots (thus requiring a login). Mastodon Backup does that, for example.

The tool allows you to turn the aggregated Atom feed into a web page. The web page will not contain any media attachments, avatars or any of that. Mark's Mastotool mirrors media.

If you still want to give it a try: you need Python 3 and lxml:

% sudo pip3 install lxml

Usage:

% ./Mastotool.py -help
Usage: Mastotool.py [COMMAND]...\n%s
--backup URL      Backup from URL 'http://example.com/@username'
--load FILENAME   Load from Atom file
--display         Display all posts as text
--html            Display all posts as html
--save FILENAME   Save to Atom file

To make a backup:

% ./Mastotool.py --backup http://example.com/@username --save username.atom

To display that backup:

% ./Mastotool.py --load username.atom --display

To generate a HTML file:

% ./Mastotool.py --load username.atom --html > username.html

Please only use this on your own data.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
SH-OToS/ConsoleTooter: Toot!!!发布时间:2022-08-18
下一篇:
veer66/bhasati: Bhasati is a Mastodon client for desktop written in Ruby using G ...发布时间: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