Access YouTube API via R. Get comments posted on YouTube videos, get information on how many times a video has been liked, search for videos with particular content, and much more. You can also get closed captions of videos you own. To learn more about the YouTube API, see https://developers.google.com/youtube/v3/.
To get the current development version from GitHub:
To get a quick overview of some important functions in tuber, check out this article. For a fun vignette about how to analyze emojis in YouTube comments, see here.
To get going, get the application id and password from Google Developer Console (see https://developers.google.com/youtube/v3/getting-started). Enable all the YouTube APIs. Also enable Freebase API. Then set the application id and password via the yt_oauth
function. For more information about YouTube OAuth, see YouTube OAuth Guide.
Note: If you are on ubuntu, you may have to run the following before doing anything:
httr::set_config(httr::config( ssl_verifypeer = 0L ) )
Get Statistics of a Video
Get Information About a Video
Get Captions of a Video
Search Videos
Get All the Comments Including Replies
Scripts are released under the MIT License.
The project welcomes contributions from everyone! In fact, it depends on it. To maintain this welcoming atmosphere, and to collaborate in a fun and productive way, we expect contributors to the project to abide by the Contributor Code of Conduct.