Easily search and access information on kinopoisk.ru
Add this line to your application's Gemfile:
gem 'kinopoisk_parser'
And then execute:
$ bundle
Or install it yourself as:
$ gem install kinopoisk_parser
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
p = Kinopoisk::Person.new 25584
p.name
#=> "Брэд Питт"
p.career
#=> ["Актер", "Продюсер"]
http://rubydoc.info/gems/kinopoisk_parser/frames
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request