Skip to main content

Retrieve data from the IMDb.

Project description

CinemagoerNG (Next Generation) is a Python library and command-line utility for retrieving data from the IMDb.

Usage example (subject to change):

>>> from cinemagoerng import web
>>> matrix = web.get_title("tt0133093")
>>> type(matrix)
<class 'cinemagoerng.model.Movie'>
>>> matrix.title
'The Matrix'
>>> matrix.year
1999
>>> matrix.runtime
136
>>> matrix.genres
['Action', 'Sci-Fi']
>>> matrix.sort_title
'Matrix'
>>> len(matrix.directors)
2
>>> matrix.directors[0].name
'Lana Wachowski'
>>> matrix.taglines
[]
>>> matrix = web.update_title(matrix, page="taglines")
>>> len(matrix.taglines)
15
>>> matrix.taglines[0]
'Free your mind'
>>> matrix_game = web.get_title("tt0390244")
>>> type(matrix_game)
<class 'cinemagoerng.model.VideoGame'>
>>> matrix_game.title
'The Matrix Online'
>>> matrix_game.runtime
AttributeError: 'VideoGame' object has no attribute 'runtime'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cinemagoerng-0.1a20240105.tar.gz (38.5 kB view hashes)

Uploaded Source

Built Distribution

cinemagoerng-0.1a20240105-py3-none-any.whl (34.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page