Giter Site home page Giter Site logo

mastotool's 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.

mastotool's People

Contributors

kensanata avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

ugeek

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.