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

fetch_all_comments stops before all comments are retrieved #1

Open
pushshift opened this issue Oct 31, 2019 · 0 comments
Open

fetch_all_comments stops before all comments are retrieved #1

pushshift opened this issue Oct 31, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@pushshift
Copy link
Owner

The current logic used to determine if all comments have been fetched is to use the "hasMore" field value to stop collecting comments for a video id. Apparently this field will return false when there are still additional comments that can be retrieved.

Additional comments can be retrieved by incrementing the cursor value to the appropriate value (the cursor parameter is used as a pagination value).

Additional logic needs to be put in place to ignore the hasMore field to continue collecting comments and terminating when all comments are collected. This may involve keeping a count of the total comments reported by the TikTok API and continuing to fetch additional comments until the total number fetched is near the reported total comment value.

@pushshift pushshift added the bug Something isn't working label Oct 31, 2019
@pushshift pushshift self-assigned this Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant