Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client.app.bsky.graph.get_known_followers does not use cursor #488

Open
JoeGermuska opened this issue Dec 5, 2024 · 2 comments
Open

client.app.bsky.graph.get_known_followers does not use cursor #488

JoeGermuska opened this issue Dec 5, 2024 · 2 comments

Comments

@JoeGermuska
Copy link

I'll be honest, this is probably actually a problem with the BlueSky API, but I couldn't figure out where to file it as an issue there. Will gladly take a pointer.

In any case, whenever I use client.app.bsky.graph.get_known_followers(), the response always has an empty cursor. I've tried it with different values for limit such that there should be a cursor because not all of the known followers have been returned, but the cursor is still null.

@MarshalX
Copy link
Owner

MarshalX commented Dec 5, 2024

It is possible that know followers just fit right into one "page"? So there is no need to paginate results and null cursor means "no more results"

@JoeGermuska
Copy link
Author

Sorry, I may not have worded my findings clearly. Here's what I see:

actor = [redacted]

resp = at_client.app.bsky.graph.get_known_followers({'actor': actor, 'limit': 50})
print(f"limit 50: response count: {len(resp.followers)}, cursor: [{resp.cursor}]")

resp = at_client.app.bsky.graph.get_known_followers({'actor': actor, 'limit': 100})
print(f"limit 100: response count: {len(resp.followers)}, cursor: [{resp.cursor}]")

output:

limit 50: response count: 50, cursor: [None]
limit 100: response count: 100, cursor: [None]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants