Skip to main content

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.5.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

themoviedb_lib-0.0.5-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file themoviedb_lib-0.0.5.tar.gz.

File metadata

  • Download URL: themoviedb_lib-0.0.5.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for themoviedb_lib-0.0.5.tar.gz
Algorithm Hash digest
SHA256 ed7cb675f81517fabcc535ace88292cceaceb6e089f9f386f75fb48cdd1a0a5b
MD5 5d942d6c7dad86e8d9f87e63d90120c3
BLAKE2b-256 5f99bc4fdb3e289d1e79561cb1083717f369b6d934a448272f5f30ba16f94e8c

See more details on using hashes here.

File details

Details for the file themoviedb_lib-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for themoviedb_lib-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0661ba0cfc20a6792aa436117351863c27f596a408db57947fa4ddfa2b00c117
MD5 7885c4ea21c8302f138b355f7e0db133
BLAKE2b-256 abc6ba90933ad2b720b01df423fae7ab318315a349c00ba50b62a9a45421e223

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page