An open API service indexing awesome lists of open source software.

https://github.com/juzershakir/imdb

A data extraction gem for imdb.com.
https://github.com/juzershakir/imdb

episodes games gem imdb movie movies ruby tv-shows

Last synced: over 1 year ago
JSON representation

A data extraction gem for imdb.com.

Awesome Lists containing this project

README

          



IMDb


[![Gem Version](https://badge.fury.io/rb/imdb_title.svg)](https://badge.fury.io/rb/imdb_title)
[![Tests](https://github.com/JuzerShakir/imdb/workflows/Tests/badge.svg)](https://github.com/JuzerShakir/imdb/actions?query=workflow%3ATests)
[![Maintainability](https://api.codeclimate.com/v1/badges/34e771dd961cd0f7a5d4/maintainability)](https://codeclimate.com/github/JuzerShakir/imdb/maintainability)

Want to extract useful information about your favorite **Movies, TV shows, Episodes, and Games**?
Look no further than our data extraction library! All the information you need is a method call away.

## Quick links

- 📖 **[Read the documentation for the latest version][rubydocs].**
- 📢 **[See what's changed in recent versions][changelog].**

[rubydocs]: https://www.rubydoc.info/gems/imdb_title/
[changelog]: CHANGELOG.md

## Getting Started

Start by including `imdb_title` in your Gemfile:

```ruby
gem 'imdb_title'
```

Then run `bundle install`.

or run this command in your console to install gem locally:

```ruby
gem install imdb_title
```

## Usage

### Here's an example

```ruby
require 'imdb_title'

# input a valid URL of any Movie, Tv-Show, Episode or Game from imdb.com
movie = IMDb::Title.new("https://www.imdb.com/title/tt0111161")

movie.title #=> The Shawshank Redemption
movie.tagline #=> Over the course of several years, two convicts...
movie.genres #=> ["Drama"]
movie.revenue #=> $28,884,716

movie.ancestors #=> [IMDb::Title, Object, PP::ObjectMixin, ...]
movie.singleton_class.ancestors #=> >, Movie, NonInteractive, IMDb::Title, Object, PP::ObjectMixin, ...]
```

---

### Available Methods


For ALL titles


  1. title

  2. tagline

  3. genres

  4. ratings

  5. popularity

  6. directors

  7. production_companies

  8. casts

  9. release_date

  10. imdb_id

  11. url



For ALL titles EXCEPT Game


  1. duration



Exculsive to Movie


  1. budget

  2. revenue

---

### Methods that return


Array


  1. casts

  2. genres

  3. directors

  4. production_companies


> All other methods will return `string` type.

## Contributing

If you have problems, please create a [GitHub Issue](https://github.com/JuzerShakir/imdb/issues).

Take a look at the [Contributing](CONTRIBUTING.md) document for
instructions on setting up the repo on your machine, understanding the codebase,
and creating a good pull request.

Thank you, contributors!

## Versioning

ImdbTitle follows Semantic Versioning 2.0 as defined at .

## License

This code is free to use under the terms of the MIT license.