PHP IMDb.com Grabber for XBTIT

For use with XBTIT only: This script enables you to collect information about movies/tv show from imdb.com

View on GitHub

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

The MIT License (MIT)

Preview

Basic Style without loading from XBTIT

Screenshot Preview

How it looks in torrent details:

Screenshot in torrent details page

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

  1. Download contents of dist into your xbtit Default Root directory/hacks/xbtit-imdb-grabber
  2. Install the hack from XBTIT’s Admin CP-> hack installer
  3. 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.