Skip to content

AgentHabeeb/python-script-to-download-movie-posters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Movie Poster & Overview Downloader

A Python script that scans a folder containing movie directories, cleans up movie names, downloads high-quality posters, and saves movie overviews from The Movie Database (TMDb).

Features

  • Cleans movie folder names by removing extra text (e.g., resolutions, rip sources, release groups, actors, etc.).
  • Fetches high-quality posters using the TMDb API and saves them in the corresponding movie folder.
  • Downloads movie overviews and saves them as info.txt in each movie folder.
  • Progress tracking with tqdm.

Requirements

  • Python 3.x
  • TMDb API key (get one from TMDb)

Installation

  1. Clone this repository:
    git clone https://github.com/yourusername/movie-info-downloader.git
    cd movie-info-downloader
  2. Install required dependencies:
    pip install requests tqdm

Usage

  1. Set up your TMDb API key in the script:
    TMDB_API_KEY = "your_api_key_here"
  2. Run the script:
    python movie_info_downloader.py
  3. Posters and overviews will be saved in each movie’s respective folder as poster.jpg and info.txt.

Movie Name Cleaning

This script removes unnecessary details from folder names, including: ✅ Dots replaced with spacesThe.Matrix.1999The MatrixYears(2004), (1957), -2019, etc. ✅ Resolutions & Quality Tags1080p, 720p, 4K, HDR, WEB-DL, BluRay, DVDRip, etc. ✅ Release Groups & Torrent TagsYTS, RARBG, GalaxyRG, anoXmous, PSA, etc. ✅ Bitrate & Encoding Infox264, x265, H.264, 10bit, 6CH, DTS, etc. ✅ Director & Actor NamesJean-Luc Godard, Andrei Tarkovsky, etc. ✅ File Size & FPS Details1600MB, 24fps, 817kbs, etc.

Example Cleanup:

clean_movie_title("The.Matrix.1999.1080p.BluRay.x264")
# Output: "The Matrix"

About

A Python script that scans a folder containing movie directories, cleans up movie names, downloads high-quality posters, and saves movie overviews from The Movie Database (TMDb).

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages