On Feb 07, Treas0n <treason...@gmail.com> wrote: > For this id: tt0844479 plot is empty but it is in fact there. It's > just not a user submitted plot.
They are two separated things (three, if you also count 'synopsis'). Try this: from imdb import IMDb ia = IMDb('http') m = ia.get_movie('0844479') print m.get('plot') # None, since it doesn't have a 'plot' [1] print m.get('plot outline') # the short summary in the main page. Now, if what you're looking for is synopsis (which, by the way, is user supplied) you have to do this: ia.update(m, 'synopsis') print m.get('synopsis') If you need to know what kind of 'info set' can be fetched using a given data access system ('http', in the above example): print ia.get_movie_infoset() If you need to know which 'info set' were already fetched for a specific movie instance: print m.current_info The 'info set' fetched by default (using ia.update(m) or for Movie instances created by ia.get_movie(movieID) ) is in imdb.Movie.Movie.default_info . Also notice that Movie instance created as results of a search (ia.search_movie(title) ) only contains some basic information (title, movieID, year, ...) and so you must use the ia.update method to fetch the other information. +++ [1] this is the parsed page: http://akas.imdb.com/title/tt0844479/plotsummary as you can see, there's no plot - just a link to the synopsis. -- Davide Alberani <davide.alber...@gmail.com> [GPG KeyID: 0x465BFD47] http://www.mimante.net/ ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Imdbpy-help mailing list Imdbpy-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/imdbpy-help