Skip to content

cumulus13/subdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SubDL - Subtitle Downloader & Scraper for subdl.com

SubDL is a Python-powered CLI tool for searching and downloading subtitles from subdl.com.
It supports both API and web scraping, offers interactive selection, and features a rich progress bar for downloads.


🚀 Features

  • Search subtitles via SubDL API or web scraping fallback
  • Interactive selection of movies/series and subtitle languages
  • Batch download: download all, by index, or by name
  • Rich progress bar for downloads
  • Debugging & pretty-print for developers (with DEBUG env)
  • Customizable download path
  • Python 3.8+ compatible

⚡ Installation

  1. Clone this repo:

    git clone https://github.com/yourusername/subdl.git
    cd subdl/subdl
  2. Install dependencies:

    pip install -r requirements.txt

    Or manually:

    pip install requests beautifulsoup4 rich rich-argparse configset jsoncolor json5

🛠️ Usage

Basic search and download

python subdl.py "movie or series name"

Force web scraping (if API fails or for more results)

python subdl.py "movie name" --web

Set custom download directory

python subdl.py "movie name" -p ./my_subtitles

Interactive selection

  • Choose the movie/series from the list
  • Choose subtitle language
  • Choose subtitle(s) to download (single, multiple, or all)

Batch download

  • Enter a to download all subtitles in a language
  • Enter 1,3,5 to download by indices
  • Enter subtitle names separated by space to download by name

🧑‍💻 Developer/Debug Mode

Set DEBUG or DEBUG_SERVER in your environment to enable extra logging and pretty JSON dumps:

export DEBUG=1
python subdl.py "movie name"

📦 Example

python subdl.py "avengers endgame"
  • Select the movie from the list
  • Select language (e.g. English)
  • Select subtitle(s) to download

📝 Notes

  • This tool scrapes subdl.com and may break if the site changes.
  • For best results, use Python 3.8+ and a modern terminal.
  • All downloads go to the subtitles folder by default (or your custom path).

🪲 Issues & Contributions

  • Found a bug? Open an issue or PR!
  • Want a new feature? Fork and hack away!

📄 License

MIT License


Happy subtitle hunting! 🎬

Author

Hadi Cahyadi

Buy Me a Coffee

Donate via Ko-fi Support me on Patreon

About

SubDL.com Downloader

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages