--- {"id": "108338098436219348", "in_reply_to_id": null, "in_reply_to_account_id": null, "sensitive": false, "spoiler_text": "", "visibility": "public", "language": "en", "replies_count": 0, "reblogs_count": 0, "favourites_count": 3, "edited_at": null, "reblog": null, "application": null, "account": {"id": "108219415927856966", "username": "brozek", "acct": "brozek", "display_name": "Brandon Rozek", "url": "https://fosstodon.org/@brozek", "avatar": "https://cdn.fosstodon.org/accounts/avatars/108/219/415/927/856/966/original/bae9f46f23936e79.jpg", "avatar_static": "https://cdn.fosstodon.org/accounts/avatars/108/219/415/927/856/966/original/bae9f46f23936e79.jpg", "header": "https://fosstodon.org/headers/original/missing.png", "header_static": "https://fosstodon.org/headers/original/missing.png", "noindex": true}, "media_attachments": [], "mentions": [], "tags": [{"name": "hugo", "url": "https://fosstodon.org/tags/hugo"}], "emojis": [], "card": {"url": "https://brandonrozek.com/blog/archiving-toots/", "title": "Archiving Toots", "description": "In the spirit of syndicating Mastodon toots to my own site, I wrote a Python script that turns toots into Hugo markdown files.\nIn this post we\u2019ll go over:\n Mastodon API Reformatting toot Creating the Markdown files Conclusion Mastodon API Before we can retrieve our toots, we need to know what user id of our account. James Cahill wrote a very clean web tool to grab your user id.", "type": "link", "author_name": "Brandon Rozek", "author_url": "https://brandonrozek.com/", "provider_name": "", "provider_url": "", "html": "", "width": 0, "height": 0, "image": null, "embed_url": "", "blurhash": null}, "poll": null, "syndication": "https://fosstodon.org/@brozek/108338098436219348", "date": "2022-05-21T04:43:11.481Z"} --- {{< unsafe >}}
I give a more informal account of how I archive my toots onto my #Hugo blog.
https://brandonrozek.com/blog/archiving-toots/
My Python script which creates the Hugo files:
{{< /unsafe >}}