A Python service for querying IMDb data
Project description
imdbinfo
A Python package to fetch and manage IMDb movie information easily.
Requirements
Python (3.7 or higher)
Installation
pip install imdbinfo
Usage
from imdbinfo.services import search_title, get_movie
# Search for a movie by title
results = search_title("The Matrix")
for movie in results.titles:
print(f"{movie.title} ({movie.year}) - {movie.imdb_id}")
Will output:
Matrix (1999) - 0133093
Matrix Reloaded (2003) - 0234215
Matrix Resurrections (2021) - 10838180
Matrix Revolutions (2003) - 0242653
The Matrix Recalibrated (2004) - 0410519
Get detailed information about a movie by IMDb ID
# Get detailed information about a movie by IMDb ID
movie = get_movie("0133093")
print(f"Title: {movie.title}") # Title: The Matrix
print(f"Year: {movie.year}") # Year: 1999
print(f"Rating: {movie.rating}") # Rating: 8.7
print(f"Genres: {', '.join(movie.genres)}") # Genres: Action, Sci-Fi
print(f"Plot: {movie.plot}") # Plot: A computer hacker learns from mysterious rebels about the true nature of his reality and his role in the war against its controllers.
Documentation
For detailed documentation, it is straightforward and self-explanatory.
License
This project is licensed under GPL v2.0 - see the LICENSE file for details.
Contributing
Contributions are welcome! Please read the CONTRIBUTING file for details on how to contribute to this project.
Issues
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file imdbinfo-0.2.5.tar.gz.
File metadata
- Download URL: imdbinfo-0.2.5.tar.gz
- Upload date:
- Size: 289.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e9ecdf593732002b9cac6c2f585a0234ed3f6f1b6284e08df07b68df88dba2a
|
|
| MD5 |
77333c2ed33390446d2deaa76795b2ab
|
|
| BLAKE2b-256 |
f03f4c13645f481e96471aa38ef00ba87fa328268b2d91c2d23f3484fe5d8ada
|
File details
Details for the file imdbinfo-0.2.5-py3-none-any.whl.
File metadata
- Download URL: imdbinfo-0.2.5-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99d9a31c22939048e769d88600b06b62c14ccd38c14d0c2acbf5b32db772b175
|
|
| MD5 |
a41ca97a71c8cdc87de11dfa0db3b12c
|
|
| BLAKE2b-256 |
bdf475997e1c4951d4ec70a34ddeeab2818856e228f9ee606459cb9efb506e47
|