youtube-comment-api | Node.js API for the YouTube comment system | REST library
kandi X-RAY | youtube-comment-api Summary
kandi X-RAY | youtube-comment-api Summary
Node.js API for the YouTube comment system
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of youtube-comment-api
youtube-comment-api Key Features
youtube-comment-api Examples and Code Snippets
Community Discussions
Trending Discussions on youtube-comment-api
QUESTION
The following code retrieves comments from a comment section of a youtube video. The thing is it retrieves 20 comments and if there is more it retrieves a next token. I am not very experienced using promises so I wonder how can I get all comments in the section until there is no token anymore?
This code is the example code from a npm package called youtube-comment-api
I guess my question is very easy to solve, but right now I have no clue.
Example:
...ANSWER
Answered 2017-May-31 at 22:01You should use recursion in order to get comments from all pages. Something like this should work:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install youtube-comment-api
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page