website-toots/108338098436219348.md

7 lines
2.6 KiB
Markdown
Raw Normal View History

2022-09-28 15:48:56 -04:00
---
2023-02-11 18:22:19 -05:00
{"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, "roles": []}, "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"}
2022-09-28 15:48:56 -04:00
---
{{< unsafe >}}
<p>I give a more informal account of how I archive my toots onto my <a href="https://fosstodon.org/tags/Hugo" class="mention hashtag" rel="tag">#<span>Hugo</span></a> blog. </p><p><a href="https://brandonrozek.com/blog/archiving-toots/" target="_blank" rel="nofollow noopener noreferrer"><span class="invisible">https://</span><span class="ellipsis">brandonrozek.com/blog/archivin</span><span class="invisible">g-toots/</span></a></p><p>My Python script which creates the Hugo files:</p><p><a href="https://github.com/Brandon-Rozek/website/blob/095622e242ae98a0e6686dd2ad0c304a58d8a677/refreshtoots_v2.py" target="_blank" rel="nofollow noopener noreferrer"><span class="invisible">https://</span><span class="ellipsis">github.com/Brandon-Rozek/websi</span><span class="invisible">te/blob/095622e242ae98a0e6686dd2ad0c304a58d8a677/refreshtoots_v2.py</span></a></p>
{{< /unsafe >}}