After some tries with #golang and #rust, I've opted to have some fun with #python too.
And there it is, the script that picks all the "#micropost" toots and converts them into the proper markdown thing for my #hugo web, media elements are also included.
Not sure if it can be helpful out there but...
https://gist.github.com/oscarmlage/bfe9adabad3c2679cb00935f3922ad96
note: it's a pity that #gitea doesn't have a snippets section.