Skip to content

ansalens/tmdbcli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tmdbcli

The Movie Database (TMDB) command line API tool for fetching movies. With this mini tool you can get a list of upcoming, top rated, popular or now playing movies. Original project URL.

Features

  • Obtain details (rating/release date) about now playing, top rated, upcoming and popular movies
  • View movie details from other pages

Example usage

$ python3 tmdbcli.py -t top -p 2
Currently showing 20 movie titles on page 2
 1. Fight Club
    | Rating:   8.4
    | Released: 1999-10-15
 2. Cinema Paradiso
    | Rating:   8.4
    | Released: 1988-11-17
 3. Counterattack
    | Rating:   8.4
    | Released: 2025-02-27
 4. City of God
    | Rating:   8.4
    | Released: 2002-08-30
 5. Psycho
    | Rating:   8.4
    | Released: 1960-06-22
<snip>

Prerequisites

Installation

  1. Clone repository
git clone https://github.com/ansalens/tmdbcli; cd tmdbcli
  1. Create a virtual environment
python -m venv .venv
  1. Activate venv
source .venv/bin/activate
  1. Install required modules
pip install -r requirements.txt
  1. Create your own .env file and put your API key inside it following the format
API_KEY=insert_api_key_here
  • Or use output redirection to create .env file from shell
echo "API_KEY=insert_api_key_here" > .env

About

TMDB command line API tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages