Code Monkey home page Code Monkey logo

imdb_og's Introduction

derobo-imdb_og

This is a fork of Jon Maddox’s gem imdb_og (github.com/maddox/imdb)

DESCRIPTION:

A simple ruby library to scrape IMDB.

FEATURES :

  • Searching imdb for movies based on title

  • Getting a Movie object based on it’s imdb id

  • Most information on imdb gets scraped, like title, poster, rating, alternative titles etc

SYNOPSIS:

You should use following code to include this gem into your project. This prevents namespace issus.

require ‘rubygems’ begin

		gem "derobo-imdb_og"
		require "imdb"

rescue Gem::LoadError

		# handle the error somehow

end

To search for a movie(including alternative titles):

m = Imdb.search_movies_by_title(“Ein Fisch namens Wanda”, true)

m.first #=> “A Fish Called Wanda” m.first #=> “tt0095159”

To get a movie by it’s imdb-id:

m = Imdb.find_movie_by_id(“tt095159”) m.title #=> “A Fish Called Wanda”

REQUIREMENTS:

Following gems are needed:

  • Hpricot

  • htmlentities

INSTALL:

Install and activated the gemcutter gem if needed $ gem install gemcutter $ gem tumble

To install the gem itself run $ gem install derobo-imdb_og

imdb_og's People

Contributors

maddox avatar mschrag avatar derobo avatar

Stargazers

Leif Gensert avatar  avatar Edu Fernández avatar

Watchers

 avatar  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.