website-toots/108338098436219348.md

2.6 KiB
Raw Blame History

id in_reply_to_id in_reply_to_account_id sensitive spoiler_text visibility language replies_count reblogs_count favourites_count edited_at reblog application account media_attachments mentions tags emojis card poll syndication date
108338098436219348 null null false public en 0 0 3 null null null
id username acct display_name url avatar avatar_static header header_static noindex
108219415927856966 brozek brozek Brandon Rozek https://fosstodon.org/@brozek https://cdn.fosstodon.org/accounts/avatars/108/219/415/927/856/966/original/bae9f46f23936e79.jpg https://cdn.fosstodon.org/accounts/avatars/108/219/415/927/856/966/original/bae9f46f23936e79.jpg https://fosstodon.org/headers/original/missing.png https://fosstodon.org/headers/original/missing.png true
name url
hugo https://fosstodon.org/tags/hugo
url title description type author_name author_url provider_name provider_url html width height image embed_url blurhash
https://brandonrozek.com/blog/archiving-toots/ Archiving Toots In the spirit of syndicating Mastodon toots to my own site, I wrote a Python script that turns toots into Hugo markdown files. In this post well go over: 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. link Brandon Rozek https://brandonrozek.com/ 0 0 null null
null https://fosstodon.org/@brozek/108338098436219348 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:

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

{{< /unsafe >}}