pythoninformation-retrievalimdbimdbpy

how to retrieve plot keywords for specific movie id using imdbpy from imdb


i want to retrieve plot keywords for specific movie id using IMDBPY from IMDb .any idea? i just know that

from imdb import IMDb
ia = IMDb()

# get a movie and print its name
the_matrix = ia.get_movie('0133094')
print(the_matrix)

Solution

  • You need to add one more parameter that's info='keywords' to get the keywords of a movie.

    from imdb import IMDb
    ia = IMDb()
    black_panther = ia.get_movie('1825683', info='keywords')
    print(black_panther['keywords'])