this post was submitted on 06 Sep 2023
7 points (100.0% liked)
Lemmy Support
4652 readers
1 users here now
Support / questions about Lemmy.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Well, I've finally found a way using plemmy instead of Lemmy.py. Basically :
from plemmy import LemmyHttp
lemmy = LemmyHttp('https://my.lemmy.instance')
lemmy.login('username','password')
lemmy.edit_community(community_id=XXX,banner="http:/yyy.tld/img.jpg")