GithubHelp home page GithubHelp logo

planetajavo / imdb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ariejan/imdb

0.0 2.0 0.0 3.19 MB

Easy automated access to IMDB

Home Page: http://rubydoc.info/github/ariejan/imdb

License: MIT License

imdb's Introduction

imdb Build Status

Description

This gem allows you to easy access publicly available data from IMDB.

Features

IMDB currently features the following:

  • Querying details movie info
  • Searching for movies
  • Command-line utility included.

Synopsis

Movies:

i = Imdb::Movie.new("0095016")

i.title
#=> "Die Hard"

i.cast_members.first
#=> "Bruce Willis"

Series:

serie = Imdb::Serie.new("1520211")

serie.title
#=> "\"The Walking Dead\""

serie.rating
#=> 8.8

serie.seasons.size
#=> 3

serie.seaon(1).episodes.size
#=> 6

series.season(1).episode(2).title
#=> "Guts"

Searching:

i = Imdb::Search.new("Star Trek")

i.movies.size
#=> 97

Using the command line utility is quite easy:

$ imdb Star Trek

or get movie info

$ imdb 0095016

Installation

gem install imdb

Running Tests

You'll need rspec and fakeweb installed to run the specs.

$ bundle install
$ bundle exec rake spec

Although not recommended, you may run the specs against the live imdb.com website. This will make a lot of calls to imdb.com, use it wisely.

$ LIVE_TEST=true bundle exec rake spec

To update the packaged fixtures files with actual imdb.com samples, use the fixtures:refresh rake task

$ bundle exec rake fixtures:refresh

Disclaimer

Neither I, nor any developer who contributed to this project, accept any kind of liability for your use of this library.

IMDB does not permit use of its data by third parties without their consent.

Using this library for anything other than limited personal use may result in an IP ban to the IMDB website.

License

See MIT-LICENSE

imdb's People

Contributors

ariejan avatar mguterl avatar rbu avatar tolosa avatar brandonmathis avatar kalos avatar guillaumebouteille avatar thedom avatar tarebyte avatar sqrel avatar dbackeus avatar eflorit avatar airhorns avatar kenpratt avatar ghedamat avatar paulrbr avatar pgeraghty avatar rick avatar heel avatar zhu1230 avatar

Watchers

James Cloos avatar Javo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.