Skip to content

RubyStarts3/YPBT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Youtube Progress Bar Tagger

Gem Version Build Status

Youtube Progress Bar Tagger (YPBT) is a gem that tracks the comments following a youtube movie and captures the time points of popularity.

Installation

If you are working on a project, add this to your Gemfile: gem 'YPBT'

For ad hoc installation from command line:

$ gem install YPBT

Quick Start

Export your Youtube api key

   $ export YOUTUBE_API_KEY='Your_Youtube_API_Key'

Install essential gem

  $ bundle install

Then do a basic test for our module

   $ rake spec

Now, try to extract data from YouTube's video => https://www.youtube.com/watch?v=[video_id]

    $ YPBT [video_id]

Usage

video = YoutubeVideo::Video.find(
  video_id: video_id
)

puts video.title

video.commentthreads.each. do |comment|
  puts comment.author.author_name
  puts comment.text_display
  puts comment.author.like_count if comment.author.like_count
  puts comment.author.author_channel_url
end

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages