powered by
For getting captions from the v3 API, you must specify the id resource. Check list_caption_tracks for more information.
list_caption_tracks
get_captions(id = NULL, lang = "en", format = "sbv", as_raw = TRUE, ...)
String. Required. id of the caption track that is being retrieved
Optional. Default is en.
en
Optional. Default is sbv.
sbv
If FALSE the captions be converted to a character string versus a raw vector
FALSE
Additional arguments passed to tuber_GET.
tuber_GET
String.
https://developers.google.com/youtube/v3/docs/captions/download
# NOT RUN { # Set API token via yt_oauth() first get_captions(id = "y3ElXcEME3lSISz6izkWVT5GvxjPu8pA") # }
Run the code above in your browser using DataLab