9

I am working on a web app which lets users tell their favourite movies, directors, movie- writers, and actors. For this I want to provide them a dropdown list or auto complete for each of them so that they can just pick their choices.

For this: I need a list of all movie titles, actors, directors, writers present on Imdb.

I checked Imdbpy and it does not seem to provide methods to get this data.

Would using imdbpy2sql.py to create a database and using sql to query the db, provide the required data? Is there any other way to do this?

Thanks!

shreyj
  • 1,759
  • 3
  • 22
  • 31
  • Will this be helpful to you? Similar question has been posted in [WebApps stack site](http://webapps.stackexchange.com/questions/4548/free-structured-movie-data-source-where-can-i-find-one) – bonCodigo Nov 11 '12 at 14:31
  • @bonCodigo I know of services which give imdb details per movie...they let you retrieve details when you give them movie title or imdb id ...but what I need is a list of all movies on imdb and similarly actors, director and writers – shreyj Nov 11 '12 at 15:39

2 Answers2

10

Using imdbpy2sql.py to create a database and using SQL to query the db, will provide you the required data.

You can also try using Java Movie Database or imdbdumpimport to read in the text files to SQL.

The last option to do this is parsing the plain text files provided by IMDb yourself.

Gfy
  • 8,173
  • 3
  • 26
  • 46
3

I think your best option is to parse the plain text files distributed here: imdb interfaces. You probably just need the 'movies', 'actors', 'actresses' and 'director' file; they are quite easy to parse.

Daniel Vérité
  • 58,074
  • 15
  • 129
  • 156
Davide Alberani
  • 1,061
  • 1
  • 18
  • 28
  • Were English versions of those databases up at this time? I only see two French and Dutch.. Is this on purpose? – Andrew T Finnell Sep 11 '16 at 17:46
  • 1
    @AndrewTFinnell: which files are you using? ftp://ftp.fu-berlin.de/pub/misc/movies/database/ contains all the English titles, plus a lot of AKAs in other languages. – Davide Alberani Sep 13 '16 at 07:44