Learn R Programming

tuber (version 0.2.1)

get_comments: Get Comments On a Video

Description

Get Comments On a Video

Usage

get_comments(video_id = NULL, simplify = TRUE, maxResults = 20, textFormat = "html", ...)

Arguments

video_id
Data Type: Character. ID of the video. Required.
simplify
Data Type: Boolean. Default is TRUE. If TRUE, the function returns a data frame. Else a list with all the information returned.
maxResults
Data Type: Numeric. Default is 20. Takes values between 20 and 100. Optional.
textFormat
Data Type: Character. Default is "html". Only takes "html" or "plainText." Optional.
...
Additional arguments passed to tuber_GET.

Value

Nested named list. The entry items is a list of comments along with meta information. Within each of the items is an item snippet which has an item topLevelComment$snippet$textDisplay that contains the actual comment.

References

https://developers.google.com/youtube/v3/docs/

Examples

Run this code
## Not run: 
# get_comments(video_id="N708P-A45D0")
# ## End(Not run)

Run the code above in your browser using DataLab