Wallogit.com
2017 © Pedro Peláez
kinopoisk Parser
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
TODO..., (*5)
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)
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' : [{},...]
}