David Blue's Handy Test Document™

@tootapp 1.1 is here with three new looks!
I really love the Obsidian theme.
Audio (MP3, OGG, WAV, FLAC, OPUS, AAC, M4A, 3GP) up to 99MB. Audio will be transcoded to MP3 using V2 VBR (roughly 192kbps). Only one audio file can be attached, per post.
Rather embarrassingly, I only recently realized that Mastodon's native search actually supports querying by attachment type. I'm going to blame Twitter's search, mostly, for this mental blockage. If this is new information to you, as well, note some exciting possibilities.
(Please note that the hyperlinks embedded within the following examples will only yield results if you have an account on the mastodon.social instance and are logged in. Those on other instances need only replace this domain with their own.)
- Query all posts containing audio:
has:audio
- Query posts in your “library” containing audio:
has:audio in:library
(This will show your account's audio posts as well as those from others you've favorited or bookmarked.) - Query all posts from a named user containing audio:
from:@DavidBlue@mastodon.social has:audio
- Query all posts from a named user from before or after a given date containing audio:
from:DavidBlue has:audio before:2022
Armed with this knowledge, I asked Gemini to try creating a Python script with the following prompt:
Using the Mastodon API on mastodon.social, construct a query that outputs raw file urls to all of the audio attachments ever posted by @DavidBlue@mastodon.social.
The equivalent search query on mastodon web would be: “from:DavidBlue has:audio”
My favorite way of actually posting these remains