Sha256: 015528cce5d04eedd6a5fdaf172351a52612ea855cfb971a8d2a05aa2e36cd43
Contents?: true
Size: 1.47 KB
Versions: 1
Compression:
Stored size: 1.47 KB
Contents
# Film Buff - A Ruby wrapper for IMDb's JSON API ## Description Film Buff provides a Ruby wrapper for IMDb's JSON API, which is the fastest and easiest way to get information from IMDb. ## Installation ### RubyGems You can install the latest Film Buff gem using RubyGems gem install filmbuff ### GitHub Alternatively you can check out the latest code directly from Github git clone http://github.com/sachse/filmbuff.git ## Usage Film Buff 0.1.0 provides two easy ways to return an object with information on a movie or TV show. First, set up an IMDb instance: require 'filmbuff' imdb = FilmBuff::IMDb.new You can then find a movie by its title. This will return the first result from IMDb's search feature: movie = imdb.find_by_title("The Wizard of Oz") movie.title => "The Wizard of Oz" movie.rating => 8.3 movie.genres => ["Adventure", "Comedy", "Family", "Fantasy", "Musical"] If you know the movie's IMDb ID you can get the information as well: movie = imdb.find_by_id("tt0032138") movie.title => "The Wizard of Oz" movie.rating => 8.3 movie.genres => ["Adventure", "Comedy", "Family", "Fantasy", "Musical"] ## Authors * [Kristoffer Sachse](http://github.com/sachse) ## Contribute Fork the project, implement your changes in it's own branch, and send a pull request to me. I'll gladly consider any help or ideas. ### Contributors - Jon Maddox (https://github.com/maddox) inspired the 0.1.0 rewrite through the imdb_party gem.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
filmbuff-0.1.1 | readme.markdown |