{"account":{"acct":"brozek","avatar":"https://cdn.fosstodon.org/accounts/avatars/108/219/415/927/856/966/original/bae9f46f23936e79.jpg","display_name":"Brandon Rozek","header":"https://fosstodon.org/headers/original/missing.png","id":"108219415927856966","uri":"https://fosstodon.org/users/brozek","url":"https://fosstodon.org/@brozek","username":"brozek"},"application":null,"card":{"author_name":"Brandon Rozek","author_url":"https://brandonrozek.com/","blurhash":null,"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’ll 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.","embed_url":"","height":0,"html":"","image":null,"image_description":"","language":null,"provider_name":"","provider_url":"","published_at":null,"title":"Archiving Toots","type":"link","url":"https://brandonrozek.com/blog/archiving-toots/","width":0},"content":"

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:

https://github.com/Brandon-Rozek/website/blob/095622e242ae98a0e6686dd2ad0c304a58d8a677/refreshtoots_v2.py

","date":"2022-05-21T04:43:11.481Z","edited_at":null,"emojis":[],"favourites_count":3,"id":"108338098436219348","in_reply_to_account_id":null,"in_reply_to_id":null,"language":"en","media_attachments":[],"mentions":[],"poll":null,"reblog":null,"reblogs_count":0,"replies_count":0,"sensitive":false,"spoiler_text":"","syndication":"https://fosstodon.org/@brozek/108338098436219348","tags":[{"name":"hugo","url":"https://fosstodon.org/tags/hugo"}],"visibility":"public"}