Script which converts an ActivityPub archive full of images to a bunch of Gemini files
Go to file
Mike Lynch f6d6a5135e Moved the regexps out to a config file 2024-05-04 14:38:10 +10:00
README.md Added a README.md 2024-05-04 14:19:04 +10:00
apub2gmi.py Moved the regexps out to a config file 2024-05-04 14:38:10 +10:00
colophon.gmi Made the colophon on each index page be a file and provided a sample. 2024-05-04 14:14:36 +10:00
config.json Moved the regexps out to a config file 2024-05-04 14:38:10 +10:00

README.md

apub2gmi.py

This is a script which takes an archive exported from a Mastodon account, looks for media attachments and uses them to build an archive for a Gemini server.

I use it to update the Glossatory archives and there's still a few things hard-coded in it which I haven't moved out to a config file, specifically the regular expressions which match attachment URLs and pull bits of text out for the index links.