this post was submitted on 15 Jan 2025
43 points (97.8% liked)
Football (Soccer fútbol fußball 足球 )
5700 readers
66 users here now
Please read the pinned post
Here for discussion of all things association football/soccer!
Rules
- No bigotry - including racism, sexism, ableism, homophobia, transphobia, or xenophobia.
- Be respectful, especially when disagreeing. Everyone should feel welcome here.
- No porn.
- No Ads / Spamming.
- No piracy
Other Football/Soccer Related Communities
- Eredivisie
- MLS
- Football Manager
- Ajax FC
- Arsenal FC
- Chelsea FC
- Liverpool FC
- Tottenham Hotspur FC
- US National Woman’s Soccer League
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I don't think the Lemmy API exposes the subscriber list of a community, you'll need access to the instance database.
What I did was checking every post for the last 365 days for user activity and store every user that have interacted with the community.
lemmy_session and lemmy_references are the same as for the LiveThreadBot (inside the src folder): https://gitlab.com/UlrikHD/lemmy-match-thread-bot
get_posts() may be missing from the lemmy_session.py file though
Excuse the ugly code, it was written as a one-off
and this part creates txt for easy copy pasting for tagging.
Thank a lot, i will share on our Meta community so we can save it and setup an migration bot. :)
I also shared this idea so maybe Piefed can integrate it into its core with a migration button where you add the new address and subcribers will receive a notification to join the new one.
If you need any technical help, you can message me at @UlrikHD@programming.dev