Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cinemagoer/cinemagoerng

A redesign of Cinemagoer (experimental).
https://github.com/cinemagoer/cinemagoerng

Last synced: about 2 months ago
JSON representation

A redesign of Cinemagoer (experimental).

Awesome Lists containing this project

README

        

# CinemagoerNG

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

> [!Note]
> This project and its authors are not affiliated in any way
to Internet Movie Database Inc.
See the [`DISCLAIMER.txt`](https://raw.githubusercontent.com/cinemagoer/cinemagoerng/main/DISCLAIMER.txt)
file for details about terms of use.

Usage example (subject to change):

```python

from cinemagoerng import web

movie = web.get_title("tt0133093")
print(movie.title) # "The Matrix"
print(movie.sort_title) # "Matrix"
print(movie.year) # 1999
print(movie.runtime) # 136

for genre in movie.genres:
print(genre) # "Action", "Sci-Fi"

for credit in movie.directors:
print(credit.name) # "Lana Wachowski", "Lilly Wachowski"

print(len(movie.taglines)) # 1
for tagline in movie.taglines:
print(tagline) # "Free your mind"
web.update_title(movie, page="taglines", keys=["taglines"])
print(len(movie.taglines)) # 15

web.update_title(movie, page="akas", keys=["akas"])
print(len(movie.akas)) # 50
aka = movie.akas[8]
print(aka.title) # "黑客帝国"
print(aka.country) # "China"
print(aka.language) # "Mandarin"
```