How to Use Youtubecaption

JooYoung Seo



License: GPL v3 CRAN status Total Downloads Travis build status AppVeyor build status Codecov test coverage


Although there exist some R packages tailored for YouTube API (e.g., ‘tuber’), downloading YouTube video subtitle (i.e., caption) in a tidy form has never been a low-hanging fruit. Using ‘youtube-transcript-api’ Python package under the hood, this R package provides users with a convenient way of parsing and converting a desired YouTube caption into a handy tibble data_frame object. Furthermore, users can easily save a desired YouTube caption data as a tidy Excel file without advanced programming background knowledge.


Python Dependencies

youtubecaption requires Anaconda Python environment on your system Path.

If you have not installed Conda environment on your system, please download and install Anaconda (Python 3.6 or later is recommended).

For this package, I have employed youtube-transcript-api Python module into R using reticulate.

R Package Installation

Development Version

You can install the latest development version as follows:

Stable Version

You can install the released version of youtubecaption from CRAN with:


Please use get_caption() function after loading youtubecaption package like below: