Recommend this page to a friend! |
Download .zip |
Info | Example | View files (6) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2016-03-02 (8 months ago) | Not enough user ratings | Total: 102 | All time: 8,453 This week: 1,068 |
Version | License | PHP version | Categories | |||
imdb-search 1.0 | The PHP License | 5.0 | PHP 5, Searching, Web services, Video |
Description | Author | ||||||||
This class can search movies and retrieve information from IMDB. |
|
find on IMDB.COM some titles like an input title
INPUT :
1 - a title ($_GET['t']),
2 - a country ($_GET['c']) : in order to filter all the titles of the 'movies' ('all' for no filter),
3 - a MoviesTypes ($_GET['g'] & see langages.php : $Types) : to filter only on some 'MoviesTypes'
OUTPUT : '0' if no title match the entry on IMDb.com, else an array:
array(
imdb_id : something like tt0456201 <- Id IMDB of the movie
title : principal title (depend on country),
year : IMDB year of the movie,
genres : (string) IMDB genre(s), [ATTENTION : in french but could be changed]
directors : (string) IMDB director(s),
poster : (string / URL) the biggest IMAGE if exists,
AKAs : (string) IMDB also_known_as (depend too on INPUT country),
video : (string / URL) IMDB trailer if exists,
type : IMDB MoviesTypes, [ATTENTION : in french but could be changed]
pere : IMDB_id for the serie if type=episode,
)
adapted from https://github.com/abhinayrathore/PHP-IMDb-Scraper
TO DO : Try to deceive IMDB.com to persuade him whom we are in France / Italy / else !
ATTENTION : strings - in the output - are filtered on "commas" because trouble with Javascript JSON.parse see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse
Files |
File | Role | Description |
---|---|---|
imdb.class.php | Class | IMDB parser |
imdbsearch.php | Example | main search file |
langages.php | Conf. | for internationalisation |
LICENSE | Lic. | License |
README.md | Data | Auxiliary data |
test.html | Output | test file |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.