On Jun 08, Stefan Schneider <[EMAIL PROTECTED]> wrote:
> Hi there,
Hi!
> I checked the "keys_alias" at Movie.py already but none of those
> seems to be what i'm looking for. :(
Try looking (using the variable names in your code) at movie.keys()
> Which gives me access to Title/Genres and such stuff. Can anyone of
> you please point of what the Keyword for the Top250 Ranking is ? :)
In you case, movie['top 250 rank']
Obviously not every movie has this info, so you better do:
top250 = movie.get('top 250 rank')
if top250 is not None:
....
Oh, the 'top 250 rank' key is retrieved even from the main page
of a movie, so there's no need to fetch the 'vote details' info set
(well, if you need other 'vote details' info you have to fetch it,
and it can be used also if you need _only_ this specific information:
it's probably faster to download/parse).
HTH,
--
Davide Alberani <[EMAIL PROTECTED]> [PGP KeyID: 0x465BFD47]
http://erlug.linux.it/~da/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Imdbpy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/imdbpy-devel