So i wanted to get the year of the movie in IMdPY midule using search_movie()
like this
import imdb
ia = imdb.IMDb()
search = ia.search_movie("The Shawshank Redemption")
year = search[0]['year']
print(search['title'] + " : " + str(year))
And always it gives me this ERR
KeyError: 'year'
though this err doesn't come up when i use ia.get_movie('0133093')
(which is by searching ID)... and i dont always know the id of the movie so i want to know if there is any way i can use the ['year']
in search_movie func