Client library for fetching and parsing IMDb title data (with AWS WAF challenge handling).
Project description
auteur
Python client for fetching and parsing IMDb title and person pages. It uses requests for HTTP, includes an AWS WAF challenge solver so that automated requests to www.imdb.com can succeed, and exposes an Auteur facade for titles and people (metadata such as title, year, type, runtime, genres), title find search, and advanced /search/title/ queries.
Install
pip install auteur
Examples
Title page (imdb_title)
from auteur import Auteur, AuteurConfig
config = AuteurConfig(language="en-US,en")
auteur = Auteur(config)
movie = auteur.imdb_title("0133093")
print(movie.title(), movie.year(), movie.genres())
Person page (imdb_person)
from auteur import Auteur, AuteurConfig
auteur = Auteur(AuteurConfig(language="en-US,en"))
person = auteur.imdb_person("0000206") # digits only or nm… prefix both work
print(person.name())
Title find (title_search)
Uses IMDb find (/find/?s=tt&q=…). Results are ImdbTitle instances seeded from the hit list (full detail loads on demand when you call other methods).
from auteur import Auteur, AuteurConfig
from auteur.imdb_title_search import TitleSearch
auteur = Auteur(AuteurConfig(language="en-US,en"))
for title in auteur.title_search("the matrix"):
print(title.title(), title.year())
movies_only = auteur.title_search("Cowboy Bebop", [TitleSearch.MOVIE])
first_five = auteur.title_search("Star Trek", max_results=5)
Advanced title search (title_search_advanced)
Structured filters on IMDb /search/title/. Each row is a dict (fields such as imdbid, title, year, type, rank, episode metadata when applicable). Locale can affect how result rows parse; if parsing looks wrong, try another AuteurConfig(language=…) (for example en-GB).
from auteur import Auteur, AuteurConfig
from auteur.imdb_title_search_advanced import TitleSearchAdvanced
auteur = Auteur(AuteurConfig(language="en-US,en"))
search = auteur.title_search_advanced()
search.set_title("Firefly")
search.set_title_types([TitleSearchAdvanced.TV_EPISODE])
search.set_year(2003)
search.set_sort(TitleSearchAdvanced.SORT_NUM_VOTES)
for row in search.search():
print(row["imdbid"], row["title"], row["year"], row["type"])
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
File details
Details for the file auteur-1.0.2.tar.gz.
File metadata
- Download URL: auteur-1.0.2.tar.gz
- Upload date:
- Size: 55.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac006eebd089b3daf7420110b92f9181707344fa7c650f699c9ed0b1ae63b575
|
|
| MD5 |
ad1423947b6fb3841c485f8cfed7d00a
|
|
| BLAKE2b-256 |
c9c0485e208e46ccfe7f6a212df094912155a76c359952412a7bd6efe3db82f4
|