Skip to main content

Retrieve data from the IMDb.

Project description

CinemagoerNG

CinemagoerNG is a Python library and command-line utility for retrieving data from IMDb. It provides a clean, modern API for accessing movie, TV show, and celebrity information from IMDb.

[!Note] This project and its authors are not affiliated with the Internet Movie Database Inc. See the DISCLAIMER.txt file for details about terms of use.

Features

  • Retrieve comprehensive movie and TV show information.
  • Support for alternate titles (AKAs).
  • Taglines and parental guide information.
  • Episode data for TV series.
  • Modern Python typing support.
  • Clean, intuitive API.

Installation

CinemagoerNG supports Python 3.11 and later versions. You can install it using pip:

pip install cinemagoerng

Basic usage

Here's a simple example of retrieving movie information:

from cinemagoerng import web as imdb

# Get basic movie information
movie = imdb.get_title("tt0133093")  # The Matrix
print(movie.title)       # "The Matrix"
print(movie.sort_title)  # "Matrix"
print(movie.year)        # 1999
print(movie.runtime)     # 136

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

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

Retrieving additional information

You can fetch additional details using the relevant set_ functions:

# Set all taglines
imdb.set_taglines(movie)
for tagline in movie.taglines:
    print(tagline)

# Get alternate titles (AKAs)
imdb.set_akas(movie)
for aka in movie.akas:
    print(f"{aka.title} ({aka.country})")

Available data

CinemagoerNG can retrieve various types of information:

Basic information

  • Title
  • Year
  • Runtime
  • Genres
  • Plot summary
  • Rating
  • Number of votes

Credits

  • Directors
  • Writers
  • Cast members
  • Producers
  • Composers
  • Crew members

Additional details

  • Taglines
  • Alternative titles (AKAs)
  • Episode information (for TV series)
  • Parental guide

Development

It is recommended to use uv for development:

# Clone the repository
git clone https://github.com/cinemagoer/cinemagoerng.git
cd cinemagoerng

# Set up environment
uv sync

# Run tests
uv run pytest

# Run type checks
uv run mypy src tests

# Check code style
uv run ruff check --preview src tests

# Test under all supported Python versions
uv run tox

License

This project is licensed under the GNU Lesser General Public License v3 or later - see the LICENSE.txt file for details.

Acknowledgments

CinemagoerNG is a modern reimagining of the original Cinemagoer/IMDbPY project. Special thanks to:

  • All contributors to the original Cinemagoer (IMDbPY) project.
  • The IMDb website for providing the data.

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.7.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cinemagoerng-0.7-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file cinemagoerng-0.7.tar.gz.

File metadata

  • Download URL: cinemagoerng-0.7.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cinemagoerng-0.7.tar.gz
Algorithm Hash digest
SHA256 a75535a27ff70251baa2984c44457cfc086fd07c0b69bb2dcfcc20483ed67ee6
MD5 fb913ad42eb0cc7f040e13b99982ebf0
BLAKE2b-256 caff4aac2b9ed2ec5ceed96437275ee13e916e31f0307ceeeda0124248e5aac7

See more details on using hashes here.

File details

Details for the file cinemagoerng-0.7-py3-none-any.whl.

File metadata

  • Download URL: cinemagoerng-0.7-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cinemagoerng-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0a7e977111881f8857eabf24050f2536b9d8db4b13143920df92fb2c3f24d976
MD5 5d5fb1f16526788dc41b9b078b217e61
BLAKE2b-256 830294d5b3a273aae57224a3b0587f2ae9febc7c08fc5df4e30dbbd4996bfe9d

See more details on using hashes here.

Supported by

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