I use the below code to get the cast of a particular movie (Top 2 for instance). How can I get a list of all movies acted by the actor/actress? For instance, I choose the movie Inception (1375666), and the cast is Leonardo DiCaprio. So how can I get the list of all movies acted by Leonardo DiCaprio ??
from imdb import IMDb
ia = IMDb()
movie = ia.get_movie('1375666')
actor = movie['cast']
print "Cast: "
for i in actor[:2]:
for j in ia.search_person(str(i))[:1]:
print i, j.personID