2017 © Pedro Peláez
 

library kinopoisk-parser

kinopoisk Parser

image

bookin/kinopoisk-parser

kinopoisk Parser

  • Wednesday, August 23, 2017
  • by bookin
  • Repository
  • 2 Watchers
  • 3 Stars
  • 28 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Kinopoisk Parser Film

Total Downloads Latest Stable Version License, (*1)

Configuring a server

Install nodejs from nvm:, (*2)

sudo apt-get update
sudo apt-get install build-essential libssl-dev
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh -o install_nvm.sh
bash install_nvm.sh
source ~/.profile
nvm install node
nvm use node

Install Google Chrome:, (*3)

sudo apt-get install google-chrome-stable

If you will use library in the PHP with composer, need install composer:, (*4)

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

Installation

NodeJs

TODO..., (*5)

PHP

To install, either run, (*6)

$ php composer.phar require bookin/kinopoisk-parser "@dev"

or add, (*7)

"bookin/kinopoisk-parser": "@dev"

to the require section of your composer.json file., (*8)

Usage

Manual command:, (*9)

parser.js https://www.kinopoisk.ru/film/telokhranitel-killera-2017-835877/, (*10)

PHP class:, (*11)

Kinopoisk::parseByUrl('https://www.kinopoisk.ru/film/telokhranitel-killera-2017-835877/'), (*12)

Returns object:, (*13)

{
    'id' : '',
    'name' : '',
    'original_name' : '',
    'description' : '',
    'image' : {
        'preview' : '',
        'original' : '',
    },
    'trailer' : '',
    'rating' : {
        'mark' : '',
        'count' : '',
    },
    'info' : {
        'year':'',
        'countries':['','',...],
        'slogan':'',
        'directors':[
            {
                'id':'',
                'url':'',
                'name':''
            },
            ...
        ],
        'scenario':[{},...],
        'producer':[{},...],
        'operator':[{},...],
        'composer':[{},...],
        'painter':[{},...],
        'mounting':[{},...],
        'genre':[{},...],
        'premiere_world':'',
        'premiere_rus':'',
        'premiere_ua':'',
        'age':'',
        'time':{
            'minutes':'',
            'hours':''
        }
    },
    'actors' : [{},...]
}

The Versions

23/08 2017

dev-master

9999999-dev

kinopoisk Parser

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

parser kinopoisk