this post was submitted on 24 Jul 2023
6 points (100.0% liked)

Lemmy.world Support

3202 readers
2 users here now

Lemmy.world Support

Welcome to the official Lemmy.world Support community! Post your issues or questions about Lemmy.world here.

This community is for issues related to the Lemmy World instance only. For Lemmy software requests or bug reports, please go to the Lemmy github page.

This community is subject to the rules defined here for lemmy.world.

To open a support ticket Static Badge


You can also DM https://lemmy.world/u/lwreport or email [email protected] (PGP Supported) if you need to reach our directly to the admin team.


Follow us for server news ๐Ÿ˜

Outages ๐Ÿ”ฅ

https://status.lemmy.world



founded 1 year ago
MODERATORS
 

Hello Lemmy!

I am messing with a bot, using the Pythorhead library.

When I try to get more than 50 posts from a community, I get the error:

couldnt_get_posts

Here is my example request:

lemmy.post.list(1234,None,51,None,None,SortType.New,None)

Is there a way to retrieve more than 50 posts from a community? I run my own tiny instance and I have rate limits set pretty high, but I don't see a way around this. Not sure if this is a setting in the library or if this is a configuration on the instance.

Any ideas?

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 1 points 1 year ago (1 children)

You might need to get them in batches, i.e. use the page parameter to get multiples of 50.

[โ€“] [email protected] 1 points 1 year ago

Note that due to new posts appearing the results might overlap in content.