0.0
No commit activity in last 3 years
No release in over 3 years
A simple YouTube wrapper around Standard Video Feeds.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.6

Runtime

~> 0.8.0
 Project Readme

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