RubyGems Navigation menu

youtube-g 0.4.1

youtube-g is a pure Ruby client for the YouTube GData API. It provides an easy way to access the latest YouTube video search results from your own programs. In comparison with the earlier Youtube search interfaces, this new API and library offers much-improved flexibility around executing complex search queries to obtain well-targeted video search results. More detail on the underlying source Google-provided API is available at: http://code.google.com/apis/youtube/overview.html == FEATURES/PROBLEMS: * Aims to be in parity with Google's YouTube GData API. Core functionality is currently present -- work is in progress to fill in the rest. == SYNOPSIS: Create a client: require 'rubygems' require 'youtube_g' client = YouTubeG::Client.new Basic queries: client.videos_by(:query => "penguin") client.videos_by(:tags => ['tiger', 'leopard']) client.videos_by(:categories => [:news, :sports]) client.videos_by(:categories => [:news, :sports], :tags => ['soccer', 'football']) client.videos_by(:user => 'liz') Standard feeds: client.videos_by(:most_viewed) client.videos_by(:top_rated, :time => :today) Advanced queries (with boolean operators OR (either), AND (include), NOT (exclude)): client.videos_by(:categories => { :either => [:news, :sports], :exclude => [:comedy] }, :tags => { :include => ['football'], :exclude => ['soccer'] })

Versions:

  1. 0.5.0 - January 7, 2009 (19 KB)
  2. 0.4.9.9 - September 1, 2008 (18.5 KB)
  3. 0.4.1 - February 11, 2008 (14.5 KB)
  4. 0.4.0 - December 18, 2007 (13.5 KB)

Runtime Dependencies:

Authors:

  • Shane Vitarana, Walter Korman

Owners:

5a39273c404e935e21f94c2c3ed5dd65E2ad007c4a9d741a535c72641963484677d7c06ca5c7ca0576107a7c94fbc4c4363548d0cfaaa4bab88747f31ad49c02

Sha 256 checksum:

3f45ff4c9978675251a83434aed0a24977a394f436ba2ff5110c9955d9bb646e

Total downloads 31,227

For this version 2,012

Required Ruby Version: None

Licenses:

N/A

Gemfile:
= Copy to clipboard Copied!

install:
= Copy to clipboard Copied!

Links: