Created
July 11, 2012 17:39
-
-
Save emres/3091936 to your computer and use it in GitHub Desktop.
List the names of common actors between The Killing and Continuum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from imdb import IMDb | |
imdb = IMDb() | |
the_killing = imdb.get_movie('1637727') | |
continuum = imdb.get_movie('1954347') | |
imdb.update(the_killing, 'full credits') | |
imdb.update(continuum, 'episodes') | |
continuum_episode = continuum['episodes'][1][5] | |
imdb.update(continuum_episode) | |
cast_of_the_killing = the_killing['cast'] | |
cast_of_continuum_episode = continuum_episode['cast'] | |
for actor in set(cast_of_the_killing).intersection(cast_of_continuum_episode): | |
print actor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment