On May 04, Roman Gaufman <hacke...@gmail.com> wrote:

> Is there no way to get a list of just actors mentioned on the main
> page for the movie?

If you're fetching the data from the web, you can use other
data access systems (beyond the default "http" - which uses the
"combined" page as its main source of information) to fetch
less data: both "mobile" and "httpThin" uses the "maindetails"
page.
"httpThin" uses the same parser of "http" (it just fetches the
main details page) while "mobile" is a different parser, tailored
for systems with little CPU/bandwidth resources.

E.g.:
  from imdb import IMDb
  ia = IMDb('httpThin') # or "mobile"
  movie = ia.search_movie('12 Angry Men')[0] # gets the first result.
  ia.update(movie) # updates the information.
  print len(movie['cast']) # will print 12, and not 16 as "http".

It goes without saying that some information present in "combined"
are not present in "maindetails", so it's up to you to decide if
you need them or not.


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

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to