A simple YouTube wrapper around Standard Video Feeds. Gets Top rated, Most viewed, Most shared, Most popular, Most recent, Most discussed, Most responded, Recently featured, Trending videos.
Ruby
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
Gemfile
LICENSE
README.md
Rakefile
youtube_pop.gemspec

README.md

YouTubePop

A very simple YouTube wrapper around Standard Video Feeds. Gets Top rated, Most viewed, Top Favorites, Most shared, Most viewed, Most popular, Most recent, Most discussed, Most responded, Recently featured and Trending videos

Installation

Add this line to your application's Gemfile:

gem 'youtube_pop'

And then execute:

$ bundle

Or install it yourself as:

$ gem install youtube_pop

Usage

require 'youtube_pop'

youtube_pop = YoutubePop::StandardApi.new

top_results = youtube_pop.top_rated         # OR
top_results = youtube_pop.top_favorites     # OR
top_results = youtube_pop.most_viewed       # OR
top_results = youtube_pop.most_shared       # OR
top_results = youtube_pop.most_popular      # OR
top_results = youtube_pop.most_recent       # OR
top_results = youtube_pop.most_discussed    # OR
top_results = youtube_pop.most_responded    # OR
top_results = youtube_pop.recently_featured # OR
top_results = youtube_pop.trending_videos

top_results.each do |result|
  puts result.published   # published date/time
  puts result.updated     # last updated date/time
  puts result.content     # content describing video
  puts result.link        # link to the video
  puts result.author_name # author name
end

top_results.size # will tell you how many results come back. No paging yet. Just up to 25 results will be returned

Feature Requests

Please email Navid at navidgems at gmail. if you have suggestions on how to make the youtube_pop gem more useful.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request