A Python script to use a mastodon archive to generate a human-readable webpage for viewing
Features:
- organizes your old posts into a conveniently readable timeline
- includes media attachments in posts
- Preserves content warnings/summaries
- Uses the header from the archive as the background
- Uses the avatar from the archive as the avatar next to your old posts
Usage
Without Python:
- Download the attached
archive_page.html
file and place it in the root of the archive (the folder that hasoutbox.json
andmedia_attachments
in it). - Next open
archive_page.html
in your web browser. It will attempt to load your archive automatically. If it fails you'll just need to browse for and open theoutbox.json
file from within the page and it will load it. -
- Note: in browsers such as chrome, you will need to select the
outbox.json
file manually. Old bio information will not be loaded in this way. If you want to see your old bio too, please open the html file in firefox or create a static html page using python as explained below.
- Note: in browsers such as chrome, you will need to select the
With Python:
- To make a webpage to view your archive, just place the
html_from_archive.py
script in the root of the archive (the folder that hasoutbox.json
andmedia_attachments
in it) and run it using python3