Say hello to `threadcat`! 🧶🐱

It's a little Rust tool which takes the URL to a Mastodon thread, and converts it to a Markdown file. It also downloads all attached media files (and their alt texts)!

That way, it's really easy to get a "first draft" for a blog post from a thread you wrote!

Installation: `cargo install threadcat`

➡️ https://codeberg.org/blinry/threadcat ⬅️

I've been hacking on it a lot this week, with my silly human hands, and it's been a lot of fun!

Right now, it can only read threads from Mastodon, and only output Markdown, but both directions could be extended.

To try it out, I've been using it to publish one blog post each day this week – you might have noticed! :D

Today's post is about DIY soft drinks! It's from when I started making my own cola and orange soda, and invented an "almond soda" that tastes like marzipan! :)

Still thinking about what ingredients would go in a DIY Mountain Dew, or a DIY Fassbrause…

https://blinry.org/diy-soft-drinks/

DIY soft drinks

Cola, orange soda, and almond soda!

OpenMate 1.0 - Auf dem Weg zum Open Source Getränk

media.ccc.de
@hmnd @blinry @Westfuchs Not sure what you use for the carbonation, but I make fizzy water with baking soda and citric acid (available in the US in the home canning section of stores).

@c_merriweather @hmnd @blinry For carbonated water I usually go for a SodaStream machine (or similar non-branded device).

Du you put the baking soda & citric acid in the bottle and seal it?

@Westfuchs @hmnd @blinry Mix baking soda into glass of water, add citric acid, stir and watch the bubbles. Adjust ingredients, when it tastes neither acidic or base, drink. Adding lemon or lime juice makes it a refreshing drink.

(I got the idea after thinking about the "volcanoes" we built in elementary school: Take a glass bottle with small neck-
we used a glass coca-cola bottle in the 1960s. Build a papier mache mountain around it. Using a funnel, pour baking soda inside. Then pour vinegar with red food coloring in the bottle, and watch the "lava" pour down the sides of the "mountain.")

@blinry I've been looking at a couple of soda and sirup recipes that call for essential oils. Anything to look out for when ordering them (in Europe)?

@blinry https://youtu.be/TDkH3EbWTYc

someone reverse engineered the coca cola recipe a few months ago, his recipe might interest you.

Perfectly Replicating Coca Cola (It Took Me A Year)

YouTube
@blinry you seem to have good hu-man hands, their output looks very hu-man indeed
@blinry being human is fun!

@blinry Nice❣️

But till now I got a thread containing just one toot, and this output:
"Note: Thread might be cut off due to Mastodon's API limits. Provide an ACCESS_TOKEN via environment variable to make authenticated requests."

How to solve this?

@harbeider I wrote a section about that in the README: https://codeberg.org/blinry/threadcat

Please check if that explanation helps – if not, feel free to ask again, and maybe I can improve the description! :)

threadcat

Converts a Mastodon thread to Markdown, and downloads all contained media files.

Codeberg.org
@blinry Now that sounds like something that could help me make some sense of my incoherent fedi ramblings 

@blinry thanks for building this! 💙

Can I ask what prompted this tool? Did you want local copies of "all things about a mast post and replies", so as to allow for an offline thought curation? Or other goals? 👀

Asking as I had similar thoughts of need - and saw this on fedi! Thanks again! 🙇‍♀️

@nicksilkey Mainly wanting to quickly put together a blogpost version of the random threads I wrote!

It's fun: "Microblogging" an event for example, comes easy to me. And then, when you're ready, you can pull that content together and publish it on the blog. :)

@blinry

If you use the #FediDev hash-tag, you'll reach other Fediverse developers.

@blinry I love how wonderfully specific this tool is!
@blinry @alina yaay. Looking forward to playing with this
@blinry Instead of splitting writings, I suggest increasing the #MAX_CHARS setting of your #mastodon instance.
@sn I think you got it the wrong way: The tool downloads threads (from instances outside my control) into one long text, not the other way around.
@sn @blinry not sure you're aware, but mastodon is a multi user software, and a lot of people post on instances that they do not have admin rights on!

@blinry

Correct me if I am wrong:

You wrote a tool that enables people to download complete Mastodon threads from other participants / on other instances?

So that's NOT made for collecting OWN content, but for other people's content?

One question:

Isn't that called STEALING?

@khzimmer2 @blinry

  • me does ctrl+p on webpage
  • arrested by the internet police

😂

@khzimmer2 @blinry the use case given was turning your own thread into a blog post - transforming your own work, not stealing someone else’s. But sure, I guess you could use this to download any thread - perhaps to convert to read on an ebook or whatever. Or steal it 🤷
@khzimmer2 Yeah it is and I'm stealing your reply with my eye-tools as we speak!
@blinry any consideration to making this a tool to archive your feed? I’ve been thinking it would be nice to have a static website of my toots for if/when it stops making sense to maintain a dynamic mastodon server to serve this content.

@blinry

is it fedi standard or mastodon exclusive?

@gabboman Mastodon-only for now, but open to extending that!
@blinry install pleroma you silly little retard

@blinry Does it mean that it's time for me to say that I've created a small CLI tool in PHP to list your threads in HTML files?

https://codeberg.org/pierstoval/mastothreads

I mean, it's still a prototype, but it's definitely worth having IMO.

mastothreads

mastothreads

Codeberg.org
@[email protected] Thanks for this app. I thought there was a web-based version somewhere. I used it sometime ago.

Do you want to make it a plugin/extension/webapp/Mastodon feature?