Cinemagoer (previously IMDbPY) is a Python package for accessing and retrieving data from IMDb's database. It scrapes movie, person, character, and company data from IMDb web pages. Version 2023.5.1 is the latest release. The project is now under maintenance mode with occasional fixes.
pip install cinemagoerVerified import paths — ran on the pinned version, not inferred.
Basic usage: search for movies and retrieve a movie by ID.
Change import from 'from imdb import IMDb' to 'from imdb import Cinemagoer'.
Catch IMDbError exceptions or use the 'reraise_exceptions' parameter to control behavior.
Implement request throttling and caching to avoid IP bans.
Report issues on GitHub and consider using an official IMDb API if available.
Run 'pip install cinemagoer' (not 'pip install imdb'). Then import from 'imdb'.
Use 'from imdb import Cinemagoer' and instantiate with 'ia = Cinemagoer()'.