Skip to content

ysato5654/ytvarb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ytvarb

ytvarb is Ruby library to analyze comment of YouTube video.

The library uses the service of YouTube Data API v3 and COTOHA API both.

Setup

  1. Before using ytvarb, you should get key and id from YouTube Data API v3 and COTOHA API service.
  • API key

    Need to register for YouTube Data API v3

  • Client ID and Client secret

    Need to register for COTOHA API

  1. Create 'api_key.txt', 'client_id.txt' and 'client_secret.txt' file newly into config/ directory, then save got key and id.

  2. Install some need ruby library

  • google-api-client
  • cotoha
$ bundle install

or

manually install by yourself

Usage

$ ruby youtube_video_analytics.rb --video_id [VIDEO ID]

DB (Data Base)

Directory structure

/db									  
└─	/#{year}						  
	└─	/#{month}					  
		└─	/#{day}					  
			└─	#{video_id}.sqlite3	  

Development

Here is for developer

Directory structure

/										  
├─	/app								  
│	└─	youtube_video_analysis.rb		  
├─	/bin								  
├─	/config								  
│	├─	api_key.txt						  
│	├─	client_id.txt					  
│	├─	client_secret.txt				  
│	└─	database.yml					  
├─	/db									  
├─	/lib								  
│	├─	/ytvarb							  
│	│	├─	api							  
│	│	│	├─	cotohaha.rb				  
│	│	│	└─	youtube.rb				  
│	│	├─	models						  
│	│	│	├─	comment.rb				  
│	│	│	├─	comment_thread.rb		  
│	│	│	└─	sentiment.rb			  
│	│	├─	model.rb					  
│	│	├─	configure.rb				  
│	│	├─	youtube_comment.rb			  
│	│	└─	version.rb					  
│	└─	ytvarb.rb						  
├─	/log								  
├─	/spec								  
├─	LICENSE								  
└─	README.md							  

About

Ruby library for YouTube video analysis

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages