PHP Classes
elePHPant
Icontem

IMDB Parser: Extract movie information from IMDB site pages

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2011-08-19 (5 years ago) RSS 2.0 feedStarStarStarStar 70%Total: 3,732 All time: 857 This week: 734Up
Version License PHP version Categories
imdb_parser 1.7GNU General Publi...4.3.2Web services, Video
Description Author

This class can be used to parse and extract movie information from the respective pages of the IMDB (internet movie database) site (http://www.imdb.com).

Check out the newest release through SVN server.
svn checkout svn://svn.berlios.de/imdb-parser/trunk imdb-parser

It can extract the movie title, language, country, rating, genre, director, plot, color or black and white, tag line and poster picture URL.

please take a look on my website for newer versions.

Feel free to report any problems, comments or whatever.

Name: Bernhard Essl <contact>
Classes: 4 packages by
Country: Austria Austria
Age: 37
All time rank: 2733 in Austria Austria
Week rank: 553 Down3 in Austria Austria Equal
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

Details
IMDB_Parser - parsing imdb.com site

Thu Feb 21 13:52:41 CET 2008
===================================

* Intro

This class parse Information like title, language, genre of a 
video-detail-site from the internet movie database http://www.imdb.com.

* Usage

first you must fetched a imdb.com-detail-site, see the examples:
$imdb_website = file_get_contents ('http://imdb.com/title/tt0138704/');

Include the class.imdb_parser.php:
require("classes/class.imdb_parser.php");

Create a new instance of the class:
$IMDB_Parser = new IMDB_Parser;

* Methods

$IMDB_Parser->getMoviePictureHtml($imdb_website)
$IMDB_Parser->getMovieTitle($imdb_website)
$IMDB_Parser->getMovieTagline($imdb_website)
$IMDB_Parser->getMoviePlot($imdb_website)
$IMDB_Parser->getMovieActors($imdb_website)
$IMDB_Parser->getMovieActors($imdb_website, $name_and_id=True)
$IMDB_Parser->getMovieRating($imdb_website)
$IMDB_Parser->getMovieLanguage($imdb_website)
$IMDB_Parser->getMovieColor($imdb_website)
$IMDB_Parser->getMovieCountry($imdb_website)
$IMDB_Parser->getMovieDirectedBy($imdb_website)
$IMDB_Parser->getMoviePicture($imdb_website)
$IMDB_Parser->getMovieGenres($imdb_website)
$IMDB_Parser->getMovieYear($imdb_website)
$IMDB_Parser->getMovieRuntime($imdb_website)
$IMDB_Parser->getMovieStars($imdb_website)
$IMDB_Parser->getMovieAka($imdb_website)
$IMDB_Parser->getMovieVotes($imdb_website)
$IMDB_Parser->getMovieAwards($imdb_website)

* SVN

Check out the newest release through SVN server.
svn checkout svn://svn.berlios.de/imdb-parser/trunk imdb-parser

* Contact

Feel free to report any problems, comments or whatever.

* Thanks

to berlios.de for hosting the project.
Guvenc kaplan, Erik aka D3FiANC3, Edward Husar and all the other contributers & bugreporters. 
  Files folder image Files  
File Role Description
Accessible without login Plain text file class.imdb_parser.php Class class IMDB_Parser
Accessible without login Plain text file example-curl.php Example example with curl
Accessible without login Plain text file example-fopen.php Example example with fopen
Accessible without login Plain text file example-pear_request.php Example example with PEAR::HTTP_Request
Accessible without login Plain text file README Doc. README
Plain text file testing.php Test test with simpletest

 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,732
This week:0
All time:857
This week:734Up
 User Ratings  
 
 All time
Utility:90%StarStarStarStarStar
Consistency:84%StarStarStarStarStar
Documentation:78%StarStarStarStar
Examples:87%StarStarStarStarStar
Tests:-
Videos:-
Overall:70%StarStarStarStar
Rank:310