PHP IMDb.com Grabber for XBTIT
This PHP library enables you to scrap data from IMDB.com.
Compatible with the current version of XBTIT (2.5.4 beta)
The script is a proof of concept. It’s mostly working, but you shouldn’t use it. IMDb doesn’t allow this method of data fetching. I personally do not use or promote this script, It’s your own responsibility if you’re using it.
The technique used is called “web scraping”. This means, if IMDb changes anything within their HTML source, the script is most likely going to fail. I won’t update this regularly, so don’t count on it to be working all the time.
License
Preview
Basic Style without loading from XBTIT
How it looks in torrent details:
Usage
See all methods in the original repository it was forked from: FabianBeiner/PHP-IMDB-Grabber I’ve added a new method to grab recommended Movies/Items. Here’s how to use it:
Recommendations
$getRecommendations()
include_once './imdb.class.php';
$oIMDB = new IMDB('http://www.imdb.com/title/tt'.$imdb_id.'/');
if ($oIMDB->isReady) {
echo $oIMDB->getRecommendations();
}
Usage with XBTIT: HACK Installation
- Download contents of dist into your xbtit Default Root directory/hacks/xbtit-imdb-grabber
- Install the hack from XBTIT’s Admin CP-> hack installer
- Copy contents of dist/imdb-files into your xbtit default root
Bugs?
If you run into any malfunctions, feel free to submit an issue. Make sure to enable debugging: const IMDB_DEBUG = true;
in imdb.class.php
.