Python IMDB client using the IMDB json web service made available for their iOS app.
Title
this can be a movie, tv show, video, documentary etc.Name
this can be a credit, cast member, any person generally.
To install imdbpie, simply:
pip install imdbpie
from imdbpie import Imdb
imdb = Imdb()
NOTE: For each client method, if the resource cannot be found they will raise LookupError
, if there is an API error then ImdbAPIError
will raise.
imdb.get_title('tt0111161')
# Returns a dict containing title information
imdb.get_title_genres('tt0303461')
# Returns a dict containing title genres information
imdb.get_title_credits('tt0303461')
# Returns a dict containing title credits information
imdb.get_title_quotes('tt0303461')
# Returns a dict containing title quotes information
imdb.get_title_ratings('tt0303461')
# Returns a dict containing title ratings information
imdb.get_title_connections('tt0303461')
# Returns a dict containing title connections information
imdb.get_title_similarities('tt0303461')
# Returns a dict containing title similarities information
imdb.get_title_videos('tt0303461')
# Returns a dict containing title videos information
imdb.get_title_episodes('tt0303461')
# Returns a dict containing season and episodes information
imdb.get_title_plot('tt0111161')
# Returns a dict containing title plot information
imdb.get_title_plot_synopsis('tt0111161')
# Returns a dict containing title plot synopsis information
imdb.get_title_awards('tt0111161')
# Returns a dict containing title awards information
imdb.get_title_releases('tt0111161')
# Returns a dict containing releases information
imdb.get_title_versions('tt0111161')
# Returns a dict containing versions information (meaning different versions of this title for different regions, or different versions for DVD vs Cinema)
imdb.get_title_user_reviews('tt0111161')
# Returns a dict containing user review information
imdb.get_title_metacritic_reviews('tt0111161')
# Returns a dict containing metacritic review information
imdb.get_title_images('tt0111161')
# Returns a dict containing title images information
imdb.title_exists('tt0111161')
# Returns True if exists otherwise False
imdb.search_for_title("The Dark Knight")
# Returns list of dict results
[{'title': "The Dark Knight", 'year': "2008", 'imdb_id': "tt0468569"},{'title' : "Batman Unmasked", ...}]
imdb.search_for_name("Christian Bale")
# Returns list of dict results
[{'imdb_id': 'nm0000288', 'name': 'Christian Bale'},{'imdb_id': 'nm7635250', ...}]
imdb.get_name('nm0000151')
# Returns a dict containing person/name information
imdb.get_name_filmography('nm0000151')
# Returns a dict containing person/name filmography information
imdb.get_name_images('nm0000032')
# Returns a dict containing person/name images information
imdb.get_name_videos('nm0000032')
# Returns a dict containing person/name videos information
imdb.validate_imdb_id('tt0111161')
# Raises `ValueError` if not valid
imdb.get_popular_titles()
# Returns a dict containing popular titles information
imdb.get_popular_shows()
# Returns a dict containing popular titles information
imdb.get_popular_movies()
# Returns a dict containing popular titles information
1. Python 2 or 3
2. See requirements.txt
pip install -r test_requirements.txt
py.test src/tests