Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

71%
+3 −0
Q&A How to get the community of a post from Lemmy API?

I'm building a script for Lemmy that, given a user returns a list of communities sorted by engagement based on total votes and upvote percentage per community, to have an idea of other communities ...

0 answers  ·  posted 11mo ago by ShadowsRanger‭  ·  edited 11mo ago by ShadowsRanger‭

Question python lemmy
#6: Post edited by user avatar ShadowsRanger‭ · 2025-10-17T10:38:38Z (11 months ago)
  • I'm building a script for Lemmy that, given a user returns a list of communities sorted by engagement based on total votes and upvote percentage per community, to have an idea of other communities I could subscribe to. This script is inspired by [pythorhead's list_post_votes.py](https://github.com/db0/pythorhead/blob/main/examples/list_post_votes.py).
  • How can I determine the community associated with a specific post using Lemmy's API, and preferably pythorhead?
  • I'm building a script for Lemmy that, given a user returns a list of communities sorted by engagement based on total votes and upvote percentage per community, to have an idea of other communities I could follow. This script is inspired by [pythorhead's list_post_votes.py](https://github.com/db0/pythorhead/blob/main/examples/list_post_votes.py).
  • How can I determine the community associated with a specific post using Lemmy's API, and preferably pythorhead?
#5: Post edited by user avatar ShadowsRanger‭ · 2025-10-17T10:38:07Z (11 months ago)
  • I'm building a script for Lemmy that, given a user returns a list communities sorted by engagement based on total votes and upvote percentage per community. This script is inspired by [pythorhead's list_post_votes.py](https://github.com/db0/pythorhead/blob/main/examples/list_post_votes.py).
  • How can I determine the community associated with a specific post using Lemmy's API, and preferably pythorhead?
  • I'm building a script for Lemmy that, given a user returns a list of communities sorted by engagement based on total votes and upvote percentage per community, to have an idea of other communities I could subscribe to. This script is inspired by [pythorhead's list_post_votes.py](https://github.com/db0/pythorhead/blob/main/examples/list_post_votes.py).
  • How can I determine the community associated with a specific post using Lemmy's API, and preferably pythorhead?
#4: Post edited by user avatar ShadowsRanger‭ · 2025-10-17T10:36:25Z (11 months ago)
  • I'm building a script for Lemmy that, given a user returns a list with total vote, upvote percentage, and community for each community. This script is inspired by [pythorhead's list_post_votes.py](https://github.com/db0/pythorhead/blob/main/examples/list_post_votes.py).
  • I don't know how to determine the community associated with a specific post using Lemmy's API, and preferably pythorhead.
  • Could you provide an example of how to obtain the community of a post?
  • I'm building a script for Lemmy that, given a user returns a list communities sorted by engagement based on total votes and upvote percentage per community. This script is inspired by [pythorhead's list_post_votes.py](https://github.com/db0/pythorhead/blob/main/examples/list_post_votes.py).
  • How can I determine the community associated with a specific post using Lemmy's API, and preferably pythorhead?
#3: Post edited by user avatar ShadowsRanger‭ · 2025-10-17T08:07:52Z (11 months ago)
  • How to get the community of a post in Lemmy using Pythorhead?
  • How to get the community of a post from Lemmy API?
  • I'm building a script for Lemmy that, given a user returns a list with total vote, upvote percentage, and community for each community. This script is inspired by [pythorhead's list_post_votes.py](https://github.com/db0/pythorhead/blob/main/examples/list_post_votes.py).
  • I don't know how to determine the community associated with a specific post using Lemmy's API.
  • Could you provide an example of how to obtain the community of a post?
  • I'm building a script for Lemmy that, given a user returns a list with total vote, upvote percentage, and community for each community. This script is inspired by [pythorhead's list_post_votes.py](https://github.com/db0/pythorhead/blob/main/examples/list_post_votes.py).
  • I don't know how to determine the community associated with a specific post using Lemmy's API, and preferably pythorhead.
  • Could you provide an example of how to obtain the community of a post?
#2: Post edited by user avatar ShadowsRanger‭ · 2025-10-16T17:29:32Z (11 months ago)
  • I'm building a script for Lemmy that, given a user returns a list with total vote, upvote percentage, and community for each community. This script is inspired by [pythorhead's list_post_votes.py](https://github.com/db0/pythorhead/blob/main/examples/list_post_votes.py).
  • I don't how to determine the community associated with a specific post using Lemmy's API.
  • Could you provide an example of how to obtain the community of a post?
  • I'm building a script for Lemmy that, given a user returns a list with total vote, upvote percentage, and community for each community. This script is inspired by [pythorhead's list_post_votes.py](https://github.com/db0/pythorhead/blob/main/examples/list_post_votes.py).
  • I don't know how to determine the community associated with a specific post using Lemmy's API.
  • Could you provide an example of how to obtain the community of a post?
#1: Initial revision by user avatar ShadowsRanger‭ · 2025-10-16T16:29:24Z (11 months ago)
How to get the community of a post in Lemmy using Pythorhead?
I'm building a script for Lemmy that, given a user returns a list with total vote, upvote percentage, and community for each community. This script is inspired by [pythorhead's list_post_votes.py](https://github.com/db0/pythorhead/blob/main/examples/list_post_votes.py).

I don't how to determine the community associated with a specific post using Lemmy's API.

Could you provide an example of how to obtain the community of a post?