Skip to content

Conversation

AustinCullar
Copy link
Owner

When pulling large amounts of comments from a video, the Data API will sometimes require an additional API request that utilizes the nextPageToken provided in the previous response.

This change adds support for detecting this field and makes additional requests to pull all comments.

@AustinCullar AustinCullar added the enhancement New feature or request label Oct 3, 2024
@AustinCullar AustinCullar self-assigned this Oct 3, 2024
@AustinCullar AustinCullar linked an issue Oct 3, 2024 that may be closed by this pull request
    - likeCount
    - viewCount
    - commentCount
- Dynamically set maxResults in the request depending on the collected commentCount
- Fix an indexing bug in the dataframe logic (introduced in the previous commit)
- Modify tests to account for new database fields
Copy link

github-actions bot commented Oct 3, 2024

Code Coverage

Package Line Rate Health
src 97%
src.data_collection 93%
src.tests 97%
Summary 96% (492 / 514)

Minimum allowed line rate is 70%

@AustinCullar AustinCullar merged commit 0f85e2a into main Oct 3, 2024
1 check passed
@AustinCullar AustinCullar deleted the 41-add-support-for-comment-paging branch October 3, 2024 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for comment paging
1 participant