Pergunta

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!

Foi útil?

Solução

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.

Outras dicas

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top