IMDbPY is a Python package useful to retrieve and manage the data of the IMDb movie database about movies, people, characters and companies.

Download IMDbPY 4.9

Documentation

A code example

from imdb import IMDb
ia = IMDb()

the_matrix = ia.get_movie('0133093')
print the_matrix['director']

for person in ia.search_person('Mel Gibson'):
        print person.personID, person['name']

How to contribute

Do you like this project? You can help by:

News

New website

We're glad to have a new wonderful web site, kindly created by Alberto Malagoli of Studio DE&P. Thanks, Alberto!

IMDbPY 4.9 released

With the usual hurry, here it is IMDbPY 4.9.

As you can see, we also have a shiny new web site, courtesy of Alberto Malagoli. Many thanks to him, and we hope you like it!

In this release: an urgent fix for the search queries, some new features like a "gender" field for persons in the database, improved performances restoring imdbIDs and many other fixes. Changelog for the 4.9 version.


workaround for imdbpy2sql.py slowness

If you experience some massive slowdown of the imdbpy2sql.py script, especially on Ubuntu 12.04, please try installing SQLAlchemy and adding the "-o sqlalchemy" option to the command line.


enhancements for (re)storing imdbIDs

In the repository, there are already many fixes and some huge improvements in the handling of imdbIDs in the SQL database. Moreover, Emmanuel Tabard kindly joined the development team. Welcome!