Description youTubeDataR functions Examples
youTubeDataR integrates R and the YouTube Data API to allow fetching data from Youtube.
youOAuth
findParams
findParts
getActivities
getCaptions
getChannelSections
getChannels
getCommentThreads
getLanguages
getComments
getGuideCategories
getRegion
getSubscriptions
getVideoCategories
getVideos
searchTube
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Not run:
# Authenticate
TK <- youOauth(client.id = "something.apps.googleusercontent.com",
client.secret = "XxxXX1XxXxXxxx1xxx1xxXXX",
scope = "force-ssl")
# search channels about R tutorials
search <- searchTube(TK, query = "R tutorial", type = "channel")
# get REvolutionAnalytics channel
revo <- search[grep("REvolutionAnalytics", search$channelTitle),
"id.channelId"]
# get activities of REvolutionAnalytics channel
revo.act <- getActivities(TK, channel.id = revo)
# get REvolutionAnalytics channel sections
revo.sect <- getChannelSections(TK, channel.id = revo)
# get my feed
my.videos <- getVideos(TK)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.