cinemagoer
Retrieve data from IMDb.
What it is and what it does
Cinemagoer is a Python library for querying IMDb movie, actor, director, and company data from locally-hosted databases populated with IMDb's freely distributed TSV datasets. It is not a web scraper—as of April 2026, the project explicitly shifted away from IMDb website parsing due to WAF restrictions and now focuses solely on handling the official downloadable datasets. The library uses SQLAlchemy as its database abstraction layer, supporting any SQLAlchemy-compatible database backend.
You populate a local database by downloading IMDb's TSV files and importing them with s32cinemagoer.py, then query that database through Cinemagoer's API. The library offers a simple interface for retrieving movies by ID, searching for people by name, and accessing related metadata like cast, crew, genres, and character information. It requires Python 3.10 or later and depends on lxml and sqlalchemy.
Use it for:
- Build a film discovery application using local IMDb data without relying on external APIs.
- Conduct film research or analysis by querying actor filmographies, director credits, and genre classifications.
- Create a personal movie database application with cast and crew information for offline use.
- Develop a command-line tool to search and display movie details, actor profiles, and production credits.
- Integrate IMDb metadata into a media management or cataloging system using a local database.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Cinemagoer retrieves and queries movie, actor, director, and company data from IMDb's freely distributed datasets using a local SQLAlchemy-backed database.
Yes, if you need offline IMDb data access and are willing to manage a local database. The package is actively maintained, has low install friction, and offers a clean API for dataset queries. Not suitable if you need real-time web scraping of IMDb pages. GPLv2 copyleft licensing requires derivative works to be open-source.
Install
cinemagoer on PyPI
pip
pip install cinemagoeruv
uv add cinemagoerpoetry
poetry add cinemagoerInstalling cinemagoer
Before you install
Low install friction with a pure-Python wheel and only two runtime dependencies (lxml, sqlalchemy). Actively maintained with a recent release (48 days old) and ongoing repository activity.
License in practice
Released under GPLv2, a copyleft license. Any derivative work or distribution must also be licensed under GPLv2 or later and include source code availability.
Quickstart
pip install cinemagoer
from cinemagoer import Cinemagoer
ia = Cinemagoer('s3', uri='sqlite:///cinemagoer.db')
movie = ia.get_movie('0133093')
for director in movie['directors']:
print(director['name'])
You must first download IMDb TSV datasets from https://datasets.imdbws.com/, import them using s32cinemagoer.py into a SQLAlchemy-supported database, and provide the database URI to Cinemagoer.
Verify before relying
- Whether the WAF introduced in April 2026 affects any remaining functionality beyond the documented dataset-only scope.
- Performance characteristics and scalability limits for large IMDb dataset queries.
- Compatibility details with specific SQLAlchemy database backends beyond SQLite.
Package facts
| License | GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and… (full text in the JSON record) (copyleft) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — lxml, sqlalchemy |
| Maintenance | actively maintained — 48 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 76,615/month — #14,610 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: cinemagoer-2026.6.27-py3-none-any.whl
Keywords: imdb, movie, cinema, film, cast, actor, actress, director, character
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
tensorflow-datasetsProvides access to many public datasets as…
permissive · top 5,000 on PyPI
guessitGuessIt extracts structured metadata from video…
copyleft · top 15,000 on PyPI
django-activity-streamDjango Activity Stream generates and displays…
permissive · top 15,000 on PyPI
astroqueryAstroquery provides a Python interface to query…
permissive · top 15,000 on PyPI
eventregistryQuery news articles and events from Event…
permissive · top 15,000 on PyPI
ir-datasetsProvides a unified Python interface to…
permissive · top 15,000 on PyPI
bokehBokeh is an interactive visualization library…
permissive · top 5,000 on PyPI
color-matchercolor-matcher transfers color characteristics…
copyleft · top 15,000 on PyPI
xraydbXrayDB provides a Python interface to a SQLite…
permissive · top 15,000 on PyPI
django-modelclusterdjango-modelcluster extends Django models to…
permissive · top 5,000 on PyPI