Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby IMDB Parsing Library
Ruby
Branch: master
Pull request Compare This branch is 7 commits behind yalcin:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
features
lib
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
VERSION
ruby-imdb.gemspec

README.md

Welcome to Ruby IMDB

ruby-imdb is IMDB parsing library for Ruby.

Features

  • Dynamic Caching with MongoDB backend
  • Object Oriented design
  • Fast access to data

Download

Enable caching

require 'rubygems'
require 'imdb'

IMDB::Configuration.caching = true
IMDB::Configuration.db(:hostname => "localhost", :database => "imdb")

Usage

require 'rubygems'
require 'imdb'

s = IMDB::Search.new
s.movie("fear and loathing in las vegas").each do
  |result|
  movie = IMDB::Movie.new(result.id)
  p movie.title
  movie.cast.each do
    |cast|
    p "#{cast.name} as #{cast.char}"
  end
  p movie.poster
end

movie = IMDB::Movie.new('0120669')
p movie.poster

Examples

Are Under features directory

Authors

This library is released under the terms of the GNU/GPL.

Something went wrong with that request. Please try again.