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
- Host: GitHub
- URL: https://github.com/stereoflo/kinopoisk-parser
- Owner: StereoFlo
- Created: 2014-07-18T06:19:06.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-12-04T17:07:46.000Z (over 11 years ago)
- Last Synced: 2025-02-25T12:48:37.001Z (over 1 year ago)
- Language: PHP
- Size: 145 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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',
);