Reputation: 37
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)
Upvotes: 2
Views: 1673
Reputation: 3759
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'])
Upvotes: 5