ytvarb is Ruby library to analyze comment of YouTube video.
The library uses the service of YouTube Data API v3 and COTOHA API both.
- 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
-
Create 'api_key.txt', 'client_id.txt' and 'client_secret.txt' file newly into config/ directory, then save got key and id.
-
Install some need ruby library
- google-api-client
- cotoha
$ bundle install
or
manually install by yourself
$ ruby youtube_video_analytics.rb --video_id [VIDEO ID]
/db
└─ /#{year}
└─ /#{month}
└─ /#{day}
└─ #{video_id}.sqlite3
Here is for developer
/
├─ /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