youTubeDataR: youTubeDataR: R and Youtube.

Description youTubeDataR functions Examples

Description

youTubeDataR integrates R and the YouTube Data API to allow fetching data from Youtube.

youTubeDataR functions

Examples

 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)

JohnCoene/youTubeDataR documentation built on May 7, 2019, 11:59 a.m.