I am trying to download all YouTube comments using the vosonSML package. To be more precise, I try to do it for one video. In Total there are about 600 top-level comments. I want to download all the comments including the replies.However the syntax or api I use is limited. So my question is: Is it possible to modify the following code so that it iterates through the comments and downloads all of them.
library(vosonSML)library(dplyr)# Authyoutube_auth <- Authenticate("youtube", apiKey = "XXX")# helper to create a list of youtube video ids from urlsyoutube_video_ids <- GetYoutubeVideoIDs("https://www.youtube.com/XXX")# Extraction of data youtube_data <- youtube_auth %>% Collect(videoIDs = youtube_video_ids, maxComments = 500, verbose = FALSE)str(youtube_data)