Hi Punit,
is it possible that you are using an old version of IMDbPY?
Please try installing the release from github:
https://github.com/alberanid/imdbpy/
I've tested it with this script:
#!/usr/bin/env python3
from imdb import IMDb
ia = IMDb()
for id_ in '10182822', '10228168', '10699362', '10696320':
m = ia.get_movie(id_)
print()
#print(sorted(m.keys()))
print('movieID:', id_)
print('title:', m['title'])
print('year:', m['year'])
print('rating:', m.get('rating'))
print('director:', m.get('director'))
And the results seem okay:
movieID: 10182822
title: Loro
year: 2018
rating: 6.7
director: [<Person id:0815204[http] name:_Paolo Sorrentino_>]
movieID: 10228168
title: First Love
year: 2019
rating: 6.8
director: [<Person id:0586281[http] name:_Takashi Miike_>]
movieID: 10699362
title: Moffie
year: 2019
rating: 7.2
director: [<Person id:3564996[http] name:_Oliver Hermanus_>]
movieID: 10696320
title: Krabi, 2562
year: 2019
rating: 6.5
director: [<Person id:4234237[http] name:_Ben Rivers_>, <Person
id:2300866[http] name:_Anocha Suwichakornpong_>]
Hope this helps.
> _______________________________________________
> Imdbpy-help mailing list
>
Imdbp...@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/imdbpy-help
--
Davide Alberani <
davide....@gmail.com> [PGP KeyID: 0x3845A3D4AC9B61AD]
http://www.mimante.net/
_______________________________________________
Imdbpy-help mailing list
Imdbp...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help