Integrates R and the YouTube Data API.
See site for docs and details.
devtools::install_github("JohnCoene/youTubeDataR")
Get your credentials
- Sign in at https://console.developers.google.com
- Click "Credentials" in the sidebar
- Hit "Create credentials"
- In the dropdown menu select "OAuth client ID"
- On the next page select "Web application"
- Fill in your "Authorized redirect URIs" as returned by
httr::oauth_callback()
as "Authorized redirect URIs" (generallyhttp://localhost:1410/
).
token <- youOAuth("something.apps.googleusercontent.com", "XXxxXxxXXxxXxxXX")
- Some variable names were changed in
v0.2
please usev0.1
for backward compatibilitysnippet.
prefix removed inv0.2
- code cleanup
Authenticate
youOAuth
Helper functions
findParams
findParts
Search channel
, video
, playlist
or any
(see example below)
searchTube
Get data
getVideos
getActivities
getCaptions
getChannels
getChannelSections
getComments
getCommentThreads
getVideoCateogries
getGuideCategories
getLanguages
getRegions
getSubscriptions
getPlaylists
getPlaylistItems