On Sat, Nov 12, 2011 at 20:44, Zsolt Ero <zsolt....@gmail.com> wrote:
>
> I have just started using IMDbPY. I would like to get the "grossing"
> field of a given movie, but I don't know how.

These information are included in the 'business' data set, that
you've to retrieve, first.

An example:
import imdb
ia = imdb.IMDb()
avatar = ia.get_movie("0499549")
ia.update(avatar, 'business') # get the business information

business = avatar.get('business') or {} # may be empty
print business.get('gross') # to see what else is available: print
business.keys()


Unfortunately I notice now that a lot of garbage is colleted, too:
you should just get a list of information... :-/
I'll try to fix it ASAP.
When the data is retrieved from a SQL db, there are no problems.


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

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to