vendredi 15 juillet 2016

How to use imdbpy using python?


I am using imdbpy to get the ratings of movies.I have succesfully installed the imdbpy but running into problem while running this small code. here is the code:

from imdb import IMDb
ia = IMDb()
the_matrix = ia.get_movie('0133093')
print the_matrix['director']

error:

from imdb import IMDb
ImportError: cannot import name IMDb

Aucun commentaire:

Enregistrer un commentaire