website/content/toots/108241726139809495.md

7 lines
4.4 KiB
Markdown
Raw Normal View History

2022-05-14 22:59:40 -04:00
---
2022-05-15 11:20:28 -04:00
{"id": "108241726139809495", "in_reply_to_id": "108240869379777025", "in_reply_to_account_id": "108205031958480135", "sensitive": false, "spoiler_text": "", "visibility": "public", "language": "en", "replies_count": 1, "reblogs_count": 0, "favourites_count": 1, "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/c007afd0c6749859.png", "avatar_static": "https://cdn.fosstodon.org/accounts/avatars/108/219/415/927/856/966/original/c007afd0c6749859.png", "header": "https://fosstodon.org/headers/original/missing.png", "header_static": "https://fosstodon.org/headers/original/missing.png", "emojis": [{"shortcode": "kdelight", "url": "https://cdn.fosstodon.org/custom_emojis/images/000/106/750/original/22f2a8da54322c05.png", "static_url": "https://cdn.fosstodon.org/custom_emojis/images/000/106/750/static/22f2a8da54322c05.png", "visible_in_picker": true}, {"shortcode": "fedora", "url": "https://cdn.fosstodon.org/custom_emojis/images/000/225/367/original/f0c78925a380caa3.png", "static_url": "https://cdn.fosstodon.org/custom_emojis/images/000/225/367/static/f0c78925a380caa3.png", "visible_in_picker": true}, {"shortcode": "firefoxnew", "url": "https://cdn.fosstodon.org/custom_emojis/images/000/106/753/original/9ad36311d3fa683b.png", "static_url": "https://cdn.fosstodon.org/custom_emojis/images/000/106/753/static/9ad36311d3fa683b.png", "visible_in_picker": true}, {"shortcode": "thunderbird", "url": "https://cdn.fosstodon.org/custom_emojis/images/000/010/377/original/4bc6f0caa347f85a.png", "static_url": "https://cdn.fosstodon.org/custom_emojis/images/000/010/377/static/4bc6f0caa347f85a.png", "visible_in_picker": true}, {"shortcode": "nextcloud", "url": "https://cdn.fosstodon.org/custom_emojis/images/000/010/361/original/nextcloud.png", "static_url": "https://cdn.fosstodon.org/custom_emojis/images/000/010/361/static/nextcloud.png", "visible_in_picker": true}], "fields": [{"name": "Website", "value": "<a href=\"https://brandonrozek.com\" target=\"_blank\" rel=\"nofollow noopener noreferrer me\"><span class=\"invisible\">https://</span><span class=\"\">brandonrozek.com</span><span class=\"invisible\"></span></a>", "verified_at": "2022-05-01T03:44:26.506+00:00"}, {"name": "GitHub", "value": "<a href=\"https://github.com/Brandon-Rozek\" target=\"_blank\" rel=\"nofollow noopener noreferrer me\"><span class=\"invisible\">https://</span><span class=\"\">github.com/Brandon-Rozek</span><span class=\"invisible\"></span></a>", "verified_at": null}, {"name": "Uses", "value": ":kdelight: :fedora: :firefoxnew: :thunderbird: :nextcloud:", "verified_at": null}]}, "media_attachments": [], "mentions": [{"id": "108205031958480135", "username": "den", "url": "https://indieweb.social/@den", "acct": "den@indieweb.social"}], "tags": [], "emojis": [], "card": {"url": "https://github.com/Brandon-Rozek/website/blob/master/refreshtoots.py", "title": "website/refreshtoots.py at master \u00b7 Brandon-Rozek/website", "description": "Github Repo of Personal Website. Contribute to Brandon-Rozek/website development by creating an account on GitHub.", "type": "link", "author_name": "", "author_url": "", "provider_name": "GitHub", "provider_url": "", "html": "", "width": 400, "height": 200, "image": "https://cdn.fosstodon.org/cache/preview_cards/images/009/436/505/original/f7f242bf00f0536e.png", "embed_url": "", "blurhash": "UTSFw=tRMxxuOrt7Rjofrqaet7WB?^RPxuWB"}, "poll": null, "syndication": "https://fosstodon.org/@brozek/108241726139809495", "date": "2022-05-04T04:14:26.931Z"}
2022-05-14 22:59:40 -04:00
---
{{< unsafe >}}
<p><span class="h-card"><a href="https://indieweb.social/@den" class="u-url mention">@<span>den</span></a></span> Earlier today I wrote a Python script that is similar to what you described.</p><p>I have a file toots.json that contains all my toots and then a script refreshtoots.py that queries the JSON API and update toots.json to contain the old and new toots.</p><p>You&#39;re welcome to check it out and adapt/use it if it fits your needs. 😃 </p><p><a href="https://github.com/Brandon-Rozek/website/blob/master/refreshtoots.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/master/refreshtoots.py</span></a></p>
{{< /unsafe >}}