Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on programming.dev

How to get a list of all subscribed communities for a Lemmy user using Pythorhead?

Hi everyone,

I’m trying to write a Python script to fetch all the communities a specific Lemmy user is subscribed to, with one community per line.

I’ve seen examples using raw requests (like this post), but I’d like to do it using Pythorhead instead.

Has anyone done this before or can provide a simple example of how to list a user’s subscriptions using Pythorhead?

Similarly, I'd also like to get the list of communities that the user has blocked.

Thanks!

View original on programming.dev
10

No replies yet

No comments on the original post yet.
How to get a list of all subscribed communities for a Lemmy user using Pythorhead? | Spyke