Someone’s started a Python wrapper around the lemmy API
https://github.com/db0/pythorhead (@db0)
Could make writing bots and other tools easier and quicker.
Someone’s started a Python wrapper around the lemmy API
https://github.com/db0/pythorhead (@db0)
Could make writing bots and other tools easier and quicker.
Thanks for the wrapper :)
Two questions:
Where can I find the relation between languages and the languages_id ints?
When I log in into a lemmy instance I check the protected member
_requestor.nodeinfo
to detect if the problem it’s the connection or the user/password:lemmy = Lemmy(instance) if not lemmy.log_in(user, password): if not lemmy._requestor.nodeinfo: raise LemmyException(f"Sorry, cannot connect to lemmy instance {instance}.") raise LemmyException( f"Sorry, cannot login {user} into {instance}. Bad user or wrong password." )
There is a better way to validate it?