/
R - Install package "Youtube" in your platform

R - Install package "Youtube" in your platform

The package "Youtube" allow to recover data in a channel Youtube.

Data add directly in HDFS.

Step 1 : Download "youtube.tar"

Step 2 : Upload "youtube.tar" in a platform Saagie

Example "Command to launch the job" :

Rscript install.R $KEY_API_YOUTUBE $IDCHANNEL_API_YOUTUBE $WEBHDFS_API_YOUTUBE

$KEY_API_YOUTUBE : Create your KEY API with https://developers.google.com/youtube/v3/getting-started

$WEBHDFS_API_YOUTUBE : http://IP_HDFS:PORT_HDFS/webhdfs/v1

$IDCHANNEL_API_YOUTUBE : Look URL

Example with the channel Saagie : UCvCLUuHrHVovgWL6DgRdiAQ 

Step 3 : Run a job

The job create two files in Hadoop File Distributed (Explore datalake in a directory "user/hdfs/youtube/").

The first file recover data activities :  

The second file recover data videos :

Warning : The separator of files is "\001".

Related content

R - Read & Write files from HDFS
R - Read & Write files from HDFS
More like this
R - HDFS with high availability
R - HDFS with high availability
More like this
R - Upload H2O library to HDFS
R - Upload H2O library to HDFS
More like this
Manual upload of big files to HDFS
Manual upload of big files to HDFS
More like this
SQOOP - Import data from Postresql
SQOOP - Import data from Postresql
More like this