Skip to content

Get information from kinopoisk.ru about film πŸ“½ πŸ“ƒ πŸš€

Notifications You must be signed in to change notification settings

bookin/kinopoisk-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Kinopoisk Parser Film

Total Downloads Latest Stable Version License

Configuring a server

Install nodejs from nvm:

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:

sudo apt-get install google-chrome-stable

If you will use library in the PHP with composer, need install composer:

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

Installation

NodeJs

TODO...

PHP

To install, either run

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

or add

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

to the require section of your composer.json file.

Usage

Manual command:

parser.js https://www.kinopoisk.ru/film/telokhranitel-killera-2017-835877/

PHP class:

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

Returns object:

{
    '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' : [{},...]
}

About

Get information from kinopoisk.ru about film πŸ“½ πŸ“ƒ πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published