[Imdbpy-help] Wrong Information fetched

5 views
Skip to first unread message

Punit Singh

unread,
Jul 12, 2020, 9:20:50 AM7/12/20
to imdbp...@lists.sourceforge.net
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


title , year being fetched is incorrect. rating value is not fetched.

Is there something wrong that I am doing?

Thanks
Punit


Davide Alberani

unread,
Jul 12, 2020, 9:36:19 AM7/12/20
to Punit Singh, imdbp...@lists.sourceforge.net
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
Reply all
Reply to author
Forward
0 new messages