movie_query – Get Actor/Movie Information

movie_query.get_movies_for_actor(actor_name)

How to find out what movies in which an actor starred. For example, to query for the movies of Billy Dee Williams:

movie_query.get_movies_for_actor("Billy Dee Williams")

Would return the following data:

['Lady Sings the Blues', 'Classic Creatures: Return of the
Jedi', 'Robot Chicken: Star Wars Episode III', 'The Final
Comedown', 'The Jacksons: An American Dream', 'Hit!', 'Number
One with a Bullet', "Brian's Song", 'Mask of Death', 'Oceans of
Fire', 'Fear Runs Silent', 'The Bingo Long Traveling All-Stars &
Motor Kings', 'Batman', 'Fear City', 'Driving Me Crazy 1991',
'The Ladies Man', 'Chiefs', 'Fanboys', 'Courage', 'Secret Agent
00 Soul', 'Scott Joplin', 'Star Wars: Episode V - The Empire
Strikes Back', 'Marked for Murder', 'Black Brigade', 'Moving
Target', 'Time Bomb', 'Nighthawks', 'Triplecross', 'Epoch:
Evolution', 'Falling For You', 'Deadly Illusion', 'Mahogany',
'Star Wars: Episode VI - Return of the Jedi', 'Alien Intruder',
'Steel Sharks', 'Star Wars: Episode VII', 'The Contract',
'Constellation']
Parameters:actor_name (string) – The name of an actor.
Returns:A list of movies in which specified actor starred.
movie_query.get_actors_for_movie(movie_title)

How to find out what actors starred in a movie. For example, to query for the actors of the upcoming Star Wars VII movie:

movie_query.get_actors_for_movie("Star Wars VII")

Would return the following data:

['Harrison Ford', 'Carrie Fisher', 'Mark Hamill', 'Billy Dee
Williams', 'Anthony Daniels']
Parameters:movie_title (string) – The title of a movie.
Returns:A list of actors that starred in the specified movie.
movie_query.get_actors()

Get a list of all actors stored in the database.

Returns:A list of actors, as strings.
movie_query.get_movies()

Get a list of all movies stored in the database.

Returns:A list of movies, as strings.

Previous topic

Welcome to movie_query’s documentation!

This Page