![Community banner](https://lemmy.dbzer0.com/pictrs/image/430faf0a-f03f-4426-b39d-2e8e00456b5f.png)
![pythorhead](https://lemmy.dbzer0.com/pictrs/image/5bcd3b0f-f837-474f-9746-69d15fb4a8f9.png?format=webp&thumbnail=48)
Pythörhead
- New Pythörhead release v0.25.2github.com Release v0.25.2 · db0/pythorhead
Version 0.25.2 What's Changed support python 3.12 by @stenius in #101 New Contributors @stenius made their first contribution in #101 Full Changelog: v0.25.1...v0.25.2
- New Pythörhead release v0.25.1github.com Release v0.25.1 · db0/pythorhead
Version 0.25.1 What's Changed Add ModeratorView listing type by @chris-y in #100 Full Changelog: v0.25.0...v0.25.1
- New Pythörhead release v0.25.0github.com Release v0.25.0 · db0/pythorhead
Version 0.25.0 What's Changed Update mark post as read by @CTalvio in #98 New Contributors @CTalvio made their first contribution in #98 Full Changelog: v0.24.2...v0.25.0
- New Pythörhead release v0.24.2github.com Release v0.24.2 · db0/pythorhead
Version 0.24.2 What's Changed Return JSON data when image upload fails by @Krafting in #97 New Contributors @Krafting made their first contribution in #97 Full Changelog: v0.24.1...v0.24.2
- New Pythörhead release v0.24.1github.com Release v0.24.1 · db0/pythorhead
Version 0.24.1 What's Changed (issue #93) fix: saved_only works for users now by @cyborgcatboy in #96 New Contributors @cyborgcatboy made their first contribution in #96 Full Changelog: v0.24.0...
- New Pythörhead release v0.24.0github.com Release v0.24.0 · db0/pythorhead
Version 0.24.0 What's Changed feat: allows to refresh auth token with relog_in by @db0 in #94 Full Changelog: v0.23.1...v0.24.0
- New Pythörhead release v0.23.1github.com Release v0.23.1 · db0/pythorhead
Version 0.23.1 What's Changed fix: pillow requirement by @db0 in #91 feat: Add Pillow requirement by @db0 in #92 Full Changelog: v0.23.0...v0.23.1
- New Pythörhead release v0.22.0github.com Release v0.22.0 · db0/pythorhead
Version 0.22.0 What's Changed added ban_from_community by @thekingoflorda in #89 New Contributors @thekingoflorda made their first contribution in #89 Full Changelog: v0.21.0...v0.22.0
- New Pythörhead release v0.21.0github.com Release v0.21.0 · db0/pythorhead
Version 0.21.0 What's Changed feat: Allow marking mentions as read by @db0 in #88 Full Changelog: v0.20.1...v0.21.0
- New Pythörhead release v0.20.1github.com Release v0.20.1 · db0/pythorhead
Version 0.20.1 What's Changed Add "get_replies" to comments by @Demigodrick in #87 Full Changelog: v0.20.0...v0.20.1
- New Pythörhead release v0.20.0github.com Release v0.20.0 · db0/pythorhead
Version 0.20.0 What's Changed feat: Support for 0.19 auth by @db0 in #85 Full Changelog: v0.19.2...v0.20.0
- New Pythörhead release v0.19.2github.com Release v0.19.2 · db0/pythorhead
Version 0.19.2 What's Changed fix: unresolved_reports payload by @db0 in #83 Full Changelog: v0.19.1...v0.19.2
- New Pythörhead release v0.19.1github.com Release v0.19.1 · db0/pythorhead
Version 0.19.1 What's Changed feat: get_base_url by @db0 in #82 Full Changelog: v0.19.0...v0.19.1
- New Pythörhead release v0.19.0github.com Release v0.19.0 · db0/pythorhead
Version 0.19.0 What's Changed feat: resolve_object endpoint by @db0 in #81 Full Changelog: v0.18.0...v0.19.0
- New Pythörhead release v0.18.0github.com Release v0.18.0 · db0/pythorhead
Version 0.18.0 What's Changed feat: comment get by @db0 in #80 Full Changelog: v0.17.0...v0.18.0
- New Pythörhead release v0.17.0github.com Release v0.17.0 · db0/pythorhead
Version 0.17.0 What's Changed Add Ban User functionality by @Demigodrick in #77 feat: add ban_user.py example by @db0 in #78 Full Changelog: v0.16.0...v0.17.0
- New Pythörhead release v0.16.0github.com Release v0.16.0 · db0/pythorhead
Version 0.16.0 What's Changed feat: Allows specifying request timeout by @db0 in #76 Full Changelog: v0.15.6...v0.16.0
- New Pythörhead release v0.15.6github.com Release v0.15.6 · db0/pythorhead
Version 0.15.6 What's Changed Feat: raise_exceptions by @db0 in #74 Full Changelog: v0.15.5...v0.15.6
- New Pythörhead release v0.15.5github.com Release v0.15.5 · db0/pythorhead
Version 0.15.5 What's Changed Feat: Community discovery also does a search by @db0 in #71 chore: version bumb by @db0 in #72 Full Changelog: v0.15.4...v0.15.5
- New Pythörhead release v0.15.4github.com Release v0.15.4 · db0/pythorhead
Version 0.15.4 What's Changed Functionallity to distinguish comments. by @SomeoneStoleMyNickname in #63 New Contributors @SomeoneStoleMyNickname made their first contribution in #63 Full Change...
- New Pythörhead release v0.15.3github.com Release v0.15.3 · db0/pythorhead
Version 0.15.3 What's Changed Allow sending of TOTP token with login request by @chris-y in #62 New Contributors @chris-y made their first contribution in #62 Full Changelog: v0.15.2...v0.15.3
- New Pythörhead release v0.15.2github.com Release v0.15.2 · db0/pythorhead
Version 0.15.2 What's Changed Fix community list by type by @Dakkaron in #60 New Contributors @Dakkaron made their first contribution in #60 Full Changelog: v0.15.1...v0.15.2
- New Pythörhead release v0.15.1github.com Release v0.15.1 · db0/pythorhead
Version 0.15.1 What's Changed Fix community.list by @Demigodrick in #58 Full Changelog: v0.15.0...v0.15.1
- New Pythörhead release v0.15.0github.com Release v0.15.0 · db0/pythorhead
Version 0.15.0 What's Changed Imp new methods in comment.py and post.py by @coder0422 in #57 New Contributors @coder0422 made their first contribution in #57 Full Changelog: v0.14.0...v0.15.0
- With pythorhead, can I post to a community in a different instance?
If I use pythorhead to log in to one lemmy instance, can I still post to a community on a different instance? I tried using discover_community to search for the community (with @community@instance) but that didn't work.
Is this possible, or can I only post to communities on the instance I am logged in on via the script?
- New Pythörhead release v0.14.0github.com Release v0.14.0 · db0/pythorhead
Version 0.14.0 What's Changed Add admin class & list applications admin function by @Demigodrick in #54 Full Changelog: v0.13.0...v0.14.0
- New Pythörhead release v0.13.0github.com Release v0.13.0 · db0/pythorhead
Version 0.13.0 What's Changed Implemented search by @NicKoehler in #53 Full Changelog: v0.12.3...v0.13.0
- New Pythörhead release v0.12.3github.com Release v0.12.3 · db0/pythorhead
Version 0.12.3 What's Changed Declare dependencies in project metadata by @fixmycode in #50 fix: avoid crashing when language not set by @db0 in #51 New Contributors @fixmycode made their first ...
- New Pythörhead release v0.12.2github.com Release v0.12.2 · db0/pythorhead
Version 0.12.2 What's Changed Add "Add mod to community" by @Demigodrick in #48 New Contributors @Demigodrick made their first contribution in #48 Full Changelog: v0.12.1...v0.12.2
- New Pythörhead release v0.12.1github.com Release v0.12.1 · db0/pythorhead
Version 0.12.1 What's Changed feat: marks PM as read by @db0 in #47 Full Changelog: v0.12.0...v0.12.1
- New Pythörhead release v0.12.0github.com Release v0.12.0 · db0/pythorhead
Version 0.12.0 What's Changed Purge for Communities, Comments, Posts and Users by @NicKoehler in #44 Full Changelog: v0.11.0...v0.12.0
- New Pythörhead release v0.11.0github.com Release v0.11.0 · db0/pythorhead
Version 0.11.0 What's Changed added function for subscribing and unsubscribing by @LemiSt24 in #43 New Contributors @LemiSt24 made their first contribution in #43 Full Changelog: v0.10.2...v0.11.0
- Help listing only subscribed communities
Hi, I'm looking for a bit of help getting a list of communities the authenticated user is subscribed to.
I'm getting the list like this:
communities = lemmy.community.list(type_=ListingType.Subscribed)
However despite specifying the _type as ListingType.Subscribed, I'm still getting back a list that includes items with the value:
'subscribed': 'NotSubscribed'
It's very possible that I'm interpreting how this works wrong, so if someone has any tips for doing this I'd be very appreciate.
Thanks!
- Python Beginner Seeking Help...
Hi,
Not sure if its ok to ask questions in here...?
I'm very much a beginner at python but I've managed to get my python script set up to post to a community. The only issue is that I can only post to communities on my own instance.
I feel like I'm missing something obvious related to community_id or community_name.
``` from pythorhead import Lemmy
lemmy = Lemmy('https://lemmy.fmhy.ml') lemmy.log_in('username', 'password') community_id = lemmy.discover_community('test_video_bot') lemmy.post.create(community_id, url='https://www.youtube.com/watch?v=riuGVkq2DKw', name='Football Highlights') ```
Above is my current code which works but if I remove the 'test_video_bot' community on my instance and replace it with 'lemmy.world/c/football' or 'lemmy.fmhy.ml/c/football@lemmy.world' I get two errors:
```
Error encountered while Request.GET: {"error":"couldnt_find_community"} Error encountered while Request.POST: Json deserialize error: invalid type: null, expected i32 at line 1 column 21
```
It's as if it's only searching my own instance and I'm not sure how to tell it to look elsewhere or if it's not possible yet to do this on pythorhead.
Thanks for any suggestions you can give to help with this issue.
- New Pythörhead release v0.10.2github.com Release v0.10.2 · db0/pythorhead
Version 0.10.2 What's Changed Enum for languages by @pnewstein in #37 New Contributors @pnewstein made their first contribution in #37 Full Changelog: v0.10.1...v0.10.2
- ai-tldr-bot-lemmy: ai based tldr bot for lemmygithub.com GitHub - tracyspacy/ai-tldr-bot-lemmy: ai based tldr bot for lemmy
ai based tldr bot for lemmy . Contribute to tracyspacy/ai-tldr-bot-lemmy development by creating an account on GitHub.
- leddit: A Reddit-to-Threadiverse archiver for discussion threads.github.com GitHub - hjalp/leddit: A Reddit-to-Threadiverse archiver for discussion threads.
A Reddit-to-Threadiverse archiver for discussion threads. - GitHub - hjalp/leddit: A Reddit-to-Threadiverse archiver for discussion threads.
- Pythörhead releases now use Pythörhead to post announcements in /c/pythorheadgithub.com CI: Added announcement in !pythorhead@lemmy.dbzer0.com by db0 · Pull Request #40 · db0/pythorhead
A python library for interacting with Lemmy. Contribute to db0/pythorhead development by creating an account on GitHub.
The CI/CD pipeline for Pythorhead has been adjusted make a post in !pythorhead@lemmy.dbzer0.com whenever a new release is published.
- New Pythörhead release v0.10.1github.com Release v0.10.1 · db0/pythorhead
Version 0.10.1 What's Changed CI: Added announcement in !pythorhead@lemmy.dbzer0.com by @db0 in #40 Full Changelog: v0.10.0...v0.10.1