Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Search youtube via this simple ruby api
Ruby
tag: v0.1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.travis.yml
Gemfile
Gemfile.lock
Rakefile
Readme.md
youtube_search.gemspec

Readme.md

Search youtube via this simple ruby api

  • just 10+ LOC
  • no dependencies
  • no funky stuff going on

Install

sudo gem install youtube_search

Or

rails plugin install git://github.com/grosser/youtube_search.git

Usage

YoutubeSearch.search('cats').first
{
  "title"=>"Killer Whale Imitates Boat Motor",
  "published"=>"2011-09-29T15:30:43.000Z",
  "id"=>"http://gdata.youtube.com/feeds/api/videos/0b2U5r7Jwkc",
  "video_id"=>"0b2U5r7Jwkc",
  "content"=>"Top YouTube Videos on ...",
  "updated"=>"2011-10-13T20:20:54.000Z",
  ...
}

TODO

  • more detailed xml parsing (atm only name and value is read)
  • parse dates into objects

Author

Michael Grosser
michael@grosser.it
Hereby placed under public domain, do what you want, just do not hold me accountable...
Flattr Build Status

Something went wrong with that request. Please try again.