cocojr / allocine-spider
该包最新版本(1.2)没有提供许可证信息。
Allocine蜘蛛
1.2
2018-06-28 21:35 UTC
Requires
- php: >=7.0
- ext-curl: *
Requires (Dev)
- phpunit/phpunit: ^7.1
This package is auto-updated.
Last update: 2024-09-25 22:28:50 UTC
README
安装
composer require cocojr/allocine-spider
测试
./vendor/bin/phpunit
用PHP编写的Allocine Spider
一个简单的类,用于从allocine.fr获取电影、电视剧和人物信息。使用fetchFilm
与allocine ID一起获取包含所有信息的\StdClass。包含信息:
- allocineId
- title
- synopsis
- img
- releaseDate
- duration
- creators
- actors
- types
- nationalities
使用fetchPerson
与allocine ID一起获取包含该人物所有信息的\StdClass。包含信息:
- allocineId
- name
- birthDate
- img
- nationality
- biography
要获取allocine ID,只需显示URL:电影为http://www.allocine.fr/film/fichefilm_gen_cfilm={ALLOCINE ID}.html
,人物为http://www.allocine.fr/personne/fichepersonne_gen_cpersonne={ALLOCINE ID}.html
@TODO: 实现fetchSerie
方法。