Library providing useful tools for The Movie Database (TMDb). Not dependent on API-keys.
Project description
themoviedb-lib
Python library providing useful tools for The Movie Database (TMDb) without depending on API-Keys
Features
- Comprehensive tools for retrieving movie / TV show data
- No dependence on API-Keys
- The data is web scraped from TMDb
- Focus on simplicity and functionality
Installation
pip install themoviedb-lib
Or if you have multiple Python / pip versions installed, use pip3:
pip3 install themoviedb-lib
Usage
Simple usage examples:
import tmdb
# Search for 'Star Wars' movies and TV shows
search_results = tmdb.API.search(query="Star Wars")
# Display search results on the screen
for result in search_results:
print(result)
# Download poster images for the search results
posters = []
for result in search_results:
posters.append(result.poster())
# Display movies on the screen
for result in search_results:
if result.is_movie():
print(result)
# For every TV show display the episodes for the first season on the screen
for result in search_results:
if result.is_tv() and "1" in result.seasons():
print(result.episodes(season_id="1"))
Utilities
| Method | Description |
|---|---|
tmdb.API.search() |
Search for movies and TV shows |
tmdb.API.languages() |
Get a list of languages supported by TMDb |
tmdb.API.categories() |
Get a list of categories supported by TMDb |
tmdb.API.poster_path() |
Generate a poster path for a movie / TV series |
tmdb.API.TV.seasons() |
Get a list of seasons for a TV series |
tmdb.API.TV.number_of_seasons() |
Get the season count for a TV series |
tmdb.API.TV.episodes() |
Get a list of episodes for a TV series season |
tmdb.API...() |
MORE UTILITIES COMING SOON |
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
themoviedb_lib-0.0.6.tar.gz
(9.8 kB
view details)
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 themoviedb_lib-0.0.6.tar.gz.
File metadata
- Download URL: themoviedb_lib-0.0.6.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1ecc4ba0fb0139fd80811d0d29e8c17efdd8efdef2b188d83a21b17d487e2d0
|
|
| MD5 |
a965c1887ff1628bd9f43e8657713f1b
|
|
| BLAKE2b-256 |
403ef969edc866ba31863875ef0d7320f474bb4cc793e7bbdb6fe3737c2ff57a
|
File details
Details for the file themoviedb_lib-0.0.6-py3-none-any.whl.
File metadata
- Download URL: themoviedb_lib-0.0.6-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77c2ff2fb87d6ae2d9d4fde08183e34d5029d9369720e51dbea08b5e4c769573
|
|
| MD5 |
617efd1c3fb9ed4e387e3632120642c4
|
|
| BLAKE2b-256 |
6825b5a223ccb2af6b2b89fc5edb9346e22ab4fd5facf007d4e8227e83e1e15f
|