On Apr 19, Andre LeBlanc <andreplebl...@gmail.com> wrote: > Thats actually not the data that I am looking for. I need the date > AND TIME that the episode is airing, not the original air date. > on the page that I linked to you can see that 13x07 is airing at > 10PM on wednesday.
Hmmm... no: no sign of it in my page. :-) You can see what I got here: http://imdbpy.sourceforge.net/tt0121955_episodes.html Are you from the United States? I suppose IMDb customize the pages based on the country of the viewer. By the way, remember that IMDbPY accesses the IMDb server using its own "user" (it sends its own cookies) and uses the 'akas' web server; i.e.: http://akas.imdb.com/title/tt0121955/tvschedule > but when I do this: > > i.update(ep, 'airing') ep['airing'] > I get a KeyError, there is no 'airing' info for that episode. I see... this is due to the fact that, for episodes, the table containing the 'tv schedule' is different. :-/ You can look at: http://akas.imdb.com/title/tt0121955/tvschedule http://akas.imdb.com/title/tt1397945/tvschedule respectively for the series and the episode. So you are right; using the previous example, this won't work: import imdb i = imdb.IMDb('http') # or 'mobile' m = i.get_movie('0121955') i.update(m, 'episodes') episode = m['episodes'][13][7] i.update(episode, 'airing') print episode['airing'] I'll see if it's possible to support both formats, but it could take some time. In the meantime, maybe you can parse the list of aired episodes (taking it from the series) and look specifically at the episode you're interested in. Thanks for the bug report, I'll add your name to the credits. :-) -- Davide Alberani <davide.alber...@gmail.com> [PGP KeyID: 0x465BFD47] http://erlug.linux.it/~da/ ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Imdbpy-help mailing list Imdbpy-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/imdbpy-help