yt.GetComments: Underlying Function to Get Comments on a Video on YouTube

Description Usage Arguments Value

Description

Basic function, adapted from tuber package, get_comment_threads(). Used by other comment functions in the ytcol package.

Usage

1
2
yt.GetComments(filter = NULL, part = "snippet", text_format = "html",
  simplify = TRUE, max_results = 100, page_token = NULL, ...)

Arguments

filter

Character; Required. named vector of length 1. Potential names of the entry in the vector: video_id: video ID. channel_id: channel ID. thread_id: comma-separated list of comment thread IDs. threads_related_to_channel: channel ID.

part

Character. Comment resource requested. Required. Comma separated list of one or more of the following: id, snippet. e.g., "id, snippet", "id", etc. Default: snippet.

text_format

Character. Default is "html". Only takes "html" or "plainText". Optional.

simplify

Boolean. Default is TRUE. If TRUE, the function returns a data frame. Else a list with all the information returned.

max_results

Integer. Maximum number of items that should be returned. Integer. Optional. Can be between 20 and 100. Default is 100.

page_token

Character. Specific page in the result set that should be returned. Optional.

...

Additional arguments passed to yt_GET.

Value

Nested named list.


Vintonm49/ytcol documentation built on May 27, 2019, 7:42 a.m.