asudox

joined 6 months ago
MODERATOR OF
[–] asudox@lemmy.asudox.dev 3 points 2 months ago

#FFFFFF at 5,6

[–] asudox@lemmy.asudox.dev 11 points 2 months ago (1 children)

Which distro

[–] asudox@lemmy.asudox.dev 11 points 2 months ago* (last edited 2 months ago)

let's see what art the fediverse produces this year

[–] asudox@lemmy.asudox.dev 6 points 2 months ago* (last edited 2 months ago) (1 children)

~~> huh? Even with the context I don't get it.~~

~~> Aaah, now that's good context. Thanks Blaze.~~

~~It's literally the same context that was linked to in the post?~~

~~...unless the post was edited to contain the dbzero link after your post. If that is the case, my bad.~~

edit: yes, that's it. Mb, ignore this.

[–] asudox@lemmy.asudox.dev 2 points 2 months ago

The most similar and FOSS one is Revolt (revolt.chat).

[–] asudox@lemmy.asudox.dev 4 points 2 months ago

The next Lemmy release so I can finally continue with my Lemmy bot.

[–] asudox@lemmy.asudox.dev 2 points 2 months ago

#FFFFFF at 0, 6

[–] asudox@lemmy.asudox.dev 3 points 2 months ago* (last edited 2 months ago) (1 children)

because nobody needed such a thing until now?

I mean, as long as the bigger instances (that are also federated with lemm.ee, e.g. lemmy.world) stay, then your content is already "archived". Unless you choose to delete your account explicitly (which probably some instances will ignore anyway), your content will stay.

[–] asudox@lemmy.asudox.dev 2 points 2 months ago* (last edited 2 months ago) (3 children)
  1. you create a function with a page parameter and call the /user endpoint with a bearer auth header. page argument should be 1 at first call.
  2. using some library (or I think requests already has deserialization of JSON) you convert the JSON into some pythonic data type (e.g. dictionaries).
  3. exit the function when the length of posts and comments is 0.
  4. otherwise loop through the posts and comments arrays with a for loop
  5. on each iteration, serialize the dictionary to JSON and save it to some file
  6. increase the page counter by 1
  7. call the same function at the end of the function and pass in the page counter (which was increased by 1 previously). this is called recursion.
[–] asudox@lemmy.asudox.dev 2 points 2 months ago* (last edited 2 months ago) (5 children)

You don't need to "study" the API. The only thing you need is the /user API endpoint: https://mv-gh.github.io/lemmy_openapi_spec/#tag/User

[–] asudox@lemmy.asudox.dev 5 points 2 months ago (9 children)

Just make a simple script (with bash or something) and go through your post/comment history via the API. Save the JSON of the posts/comments somewhere.

view more: ‹ prev next ›