Hi,
I've just tried out imdbpy for the first time, and put together a very
simple script to retrieve the ratings of the specified movieid... and
it does not return the ratings. See code below:
import sys
try:
import imdb
except ImportError:
print 'You need to install IMDbPY package'
sys.exit(1)
ia = imdb.IMDb(accessSystem='http')
ia.set_proxy(None)
try:
movie = ia.get_movie('0117951')
except imdb.IMDbError, e:
print 'Error retrieving movie information'
sys.exit(3)
if not movie:
print "Can't find the movie"
else:
print movie['long imdb title']
print movie.get('rating')
print movie.keys()
There is no 'rating' key for this movie. I have looked at the movie on
IMDB itself (Trainspotting) and there is a rating. What am I missing?
Thanks
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Imdbpy-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/imdbpy-help