Kinopoisk Parser

Easily search and access information on kinopoisk.ru

Build Status Dependency Status Gem Version Code Climate

Installation

Add this line to your application's Gemfile:

gem 'kinopoisk_parser'

And then execute:

$ bundle

Or install it yourself as:

$ gem install kinopoisk_parser

Usage

Movie

Initialize with

m = Kinopoisk::Movie.new 277537

or

m = Kinopoisk::Movie.new 'Dexter'

Access information

m.title
#=> "Правосудие Декстера"

m.countries
#=> ["США"]

m.slogan
#=> "«Takes life. Seriously.»"
s = Kinopoisk::Search.new 'Life of Pi'

s.movies.count
#=> 6

s.people.count
#=> 5

Person

p = Kinopoisk::Person.new 25584

p.name
#=> "Брэд Питт"

p.career
#=> ["Актер", "Продюсер"]

Documentation

http://rubydoc.info/gems/kinopoisk_parser/frames

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request