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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file cinemagoerng-0.1a20240105.tar.gz
.
File metadata
- Download URL: cinemagoerng-0.1a20240105.tar.gz
- Upload date:
- Size: 38.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd7a6845ea41ff6a5f5dbd19594fbba80f3eac0e314b4dc9f3af182dfff65c6a |
|
MD5 | 17bfdd45cc44a7265b05f2c88489ce9b |
|
BLAKE2b-256 | ad272e8670390b1aa57a8c3346ffb201ab80ecde4940260ff2fcaca21e4f7f89 |
File details
Details for the file cinemagoerng-0.1a20240105-py3-none-any.whl
.
File metadata
- Download URL: cinemagoerng-0.1a20240105-py3-none-any.whl
- Upload date:
- Size: 34.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8315cda9179de468a06e012e155649ca8ab7d55c6ea8a0af3b8aa4cf5b82c69c |
|
MD5 | 8e285a67097ae1cee2728b77559ae735 |
|
BLAKE2b-256 | bd8a51db69ccbdbc618ae012b3cef50d139de3a4d20ee9d01057dd40fabe6cff |