Pabo is a user on social.tchncs.de. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

downloaded all my toots with #mastodonpy: gonna train a neural net on myself and recursively self-improve until I get the perfect toot

@tomharris I've been wondering about a way to backup/export my toots. How does that thing work?

Pabo @Pabo

@ultimape @tomharris
Haven't tried it yet, but on the Mastodon API, under Accounts [0], getting an account's statuses is supported via

GET /api/v1/accounts/:id/statuses

I don't know if there's an automated way to do that though.

[0] github.com/tootsuite/documenta

@Pabo @ultimape

I used the python wrapper for the api here: mastodonpy.readthedocs.io/en/s
First I created an API instance according to the example there, then I just repeatedly called the Mastodon.account_statuses method with successively lower max_id, adding any new toots to a dict (of the form {toot_id : toot_text}) as I went. Then I wrote the toots to a file.

There's probably a better way to do it, but this naive method worked for me.