On Mar 15, Friedrich Weber <f...@samurai-x.org> wrote:

> Hi all!

Hi!

> is it possible to obtain a movie's keywords
> (just a list of the keywords listed at, for example,
> http://www.imdb.com/title/tt0087544/keywords)? I couldn't find
> anything about this in the sources, but maybe I am overlooking
> something :)

Maybe the documentation? ;-)
See README.package, especially the 'INFORMATION SETS' section.

Example:
  from imdb import IMDb
  i = IMDb('http')
  nausicaa = i.get_movie('0087544')
  # The "update" method is the key for what you need.
  i.update(nausicaa, 'keywords')
  print nausicaa['keywords']


The same information is available in every data access system ('sql',
'local', 'mobile', ...)

By the way, if you really need _only_ these information and you
already have the movieID (maybe from a i.search_movie call), you can
save some time/bandwidth asking only for these information:
  from imdb import IMDb
  i = IMDb('http')
  nausicaa = i.get_movie('0087544', info='keywords')
  # Here the nausicaa Movie instance doesn't contains many information:
  # the movie doesn't even have a title!
  print nausicaa['keywords']


HTH,
-- 
Davide Alberani <davide.alber...@gmail.com> [PGP KeyID: 0x465BFD47]
http://erlug.linux.it/~da/

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to