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.


On Sun, Jul 12, 2020 at 3:20 PM Punit Singh <link2pu...@gmail.com> wrote:
>
> Hello
>
> I have been using IMDbPY for a while and it has been fairly accurate in 
> retrieving the results.
>
> However, I have recently noticed that some information being fetched is 
> incorrect when I try to match it with the details shown on IMDb page for the 
> same title.
>
> For example: Try fetching the movie details for following IMDB id's
>
> https://www.imdb.com/title/tt10182822/
> https://www.imdb.com/title/tt10228168/
> https://www.imdb.com/title/tt10699362/
> https://www.imdb.com/title/tt10696320/
>
> title , year being fetched is incorrect. rating value is not fetched.
>
> Is there something wrong that I am doing?
>
> Thanks
> Punit
>
>
> _______________________________________________
> Imdbpy-help mailing list
> Imdbpy-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/imdbpy-help



-- 
Davide Alberani <davide.alber...@gmail.com>  [PGP KeyID: 0x3845A3D4AC9B61AD]
http://www.mimante.net/


_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to