An open API service indexing awesome lists of open source software.

https://github.com/stereoflo/kinopoisk-parser

Parser php class for parse the film information
https://github.com/stereoflo/kinopoisk-parser

Last synced: about 2 months ago
JSON representation

Parser php class for parse the film information

Awesome Lists containing this project

README

          

Kinopoisk-Parser
================

It's a php class for parse a movie info from the site kinopoisk.ru

How to use:

$parce = new parser('you_login', 'you_password');
$parce->get_id($get_film); // $get_film can be an url or an id (integer)
Get the converted to UTF8 result: $encode_result = $parce->encode_result('mb', $get_id);
Parse of result by rules: $parce->parse($rules, $encode_result)

Rules an array example:

$rules = array(
'name' =>'#

(.*?)

#si',
);