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

The accuracy of the number of entries returned by home_latest_timeline or home_timeline after setting the limit parameter #226

Closed
bwnjnOEI opened this issue Jun 24, 2024 · 0 comments

Comments

@bwnjnOEI
Copy link

I'm not sure if I understand correctly: the limit parameter is used to upper limit the number of tweet items, but based on the actual running situation, this limit and the actual number of items obtained differ by about 1 time (specifically, it depends on the actual return of twitter, and in most cases, each cursor returns 102 items).

clipboard_2024-06-25_03-43

I referred to the _paginate function under file account.py, although I'm not very clear about the role of DUP_LIMIT, but I found that the count of rest_id is related to the limit parameter, but it doesn't accurately reflect the upper limit provided by the limit parameter.

I want to confirm whether this is a problem or a feature, why use rest_id as a counter label instead of, for example, sortIndex (this key is very robust in all request types) and whether it will be improved in the future here.

@bwnjnOEI bwnjnOEI changed the title The accuracy of the number of entries in home_latest_timeline or home_timeline after setting the limit parameter The accuracy of the number of entries returned by home_latest_timeline or home_timeline after setting the limit parameter Jun 24, 2024
@bwnjnOEI bwnjnOEI closed this as completed Sep 1, 2024
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

1 participant