CLI Tool for Searching and Downloading Subtitles from subdivx.com
SUBDIVX-DL is a fast command-line interface (CLI) tool for searching and downloading subtitles, optimized to retrieve the best results.
- Fast Search: Quickly find subtitles for your favorite movies and shows.
- Efficient Downloads: Download subtitles with ease and speed.
- Automatic File Renaming: Automatically rename your downloaded subtitles.
- Customizable Display: Adjust the layout and style of search results to suit your preferences.
You can install subdivx-dl by following these steps:
- Download the repository
git clone www.github.com/csq/subdivx-dl
- Enter into the folder
subdivx-dland executepip install .
Python versions 3.10+ are supported. Other versions and implementations may or may not work correctly.
- Guessit: Extracts metadata from media filenames.
- Tabulate: Formats and displays data in tables for better readability.
- Patool: Archive file manager that supports various archive formats.
- Camoufox: Custom build of Firefox for web scraping.
subdivx-dl [OPTIONS] [SEARCH] Options:
-h, --help Print the help text and exit
Startup:
-V, --version Print program version and exit
-v, --verbose Enable verbose output
-cu, --check-update Check availability of updates
Download:
-s, --season Download subtitles for the entire season
-l, --location LOCATION Specify the destination directory
-nr, --no-rename Disable file renaming
-f, --fast Directly download the best matching subtitle
Order-by:
-odates, --order-by-dates Order results by dates
-odownloads, --order-by-downloads Order by number of downloads
Results:
-n, --lines LINES Limit the number of results
-c, --comments Display comments
Layout:
-m, --minimal Show results in a minimal layout
-a, --alternative Show results using an alternative layout
-cmp, --compact Show results in a compact layout
Style:
-st, --style STYLE Show results in the selected style
Miscellaneous:
-dh, --disable-help Disable help messages
-ne, --no-exit Disable automatic exit
-lcode, --language-code CODE Specify a custom language code
Configuration:
-sc, --save-config Save configuration
-lc, --load-config Load configuration
-dc, --dump-config Dump configuration
These examples show habitual operation
Search and download a single subtitle in the current directory
subdivx-dl 'Silicon Valley S01E01' subdivx-dl 'The.Matrix.Revolutions.2003.REMASTERED.1080p.10bit.BluRay.8CH.x265.HEVC-PSA.mkv'Search and download multiples subtitles in same directory
subdivx-dl -s 'Silicon Valley S01'Search and download a subtitle in specific directory (directory is create if it does not exist)
subdivx-dl -l ~/Downloads/MyDirectory/ 'Silicon Valley S01E01'Search and download a subtitle but not renaming file (keep name of origin)
subdivx-dl -nr 'Matrix'Search subtitle including their comments
subdivx-dl -c 'Halo S01E01'Search subtitles using IMDb ID
subdivx-dl 'tt0113243' subdivx-dl 'https://www.imdb.com/es/title/tt0113243/'Download the best subtitle directly
subdivx-dl -f 'It Crowd S02E01'It is possible to apply different styles to the tables that display the results using the -st or --style options and specifying the desired style name. The available options are: simple, grid, pipe, presto, orgtbl, psql, rst, simple_grid, rounded_grid, fancy_grid, heavy_grid, double_grid and mixed_grid. If no style is specified, the default rounded_grid will be used.
-a,--alternative: Displays results in an alternative format, presenting the title and description side by side.
-cmp,--compact: Shows results in individual tables, with the title and description presented in the same table.
-m,--minimal: Presents results in a minimalist format, showcasing the title, downloads, and dates.
The application automatically detects the language based on your operating system's locale settings. Currently, it supports only English and Spanish, with the default language set to 'en' if the locale language cannot be recognized.
You can also change the language manually using the following command:
-lcode CODEor--language-code CODE: This option allows you to specify the language, where CODE can be either 'en' for English or 'es' for Spanish.
To save frequently used options for the subdivx-dl command, the following options are implemented:
-scor--save-config: allows you to save the entered arguments.-lcor--load-config: allows you to perform searches with previously saved arguments.-dcor--dump-config: prints the location of the configuration and its current settings.
To extract compressed files using the Patool library, ensure you have the following tools installed:
-
RAR Files: Install one of the following:
- unrar
- unar
- 7zip
-
7z Files: Install 7zip.
Having these tools will allow for the extraction of the corresponding file formats.
A valid IMDb ID may not return results due to an external issue with subdivx.com. The solution is to search by file name or keywords.
Download the Camoufox browser
For Windows:
camoufox fetchFor MacOS & Linux:
python3 -m camoufox fetchThis tool is for educational purposes only. The developer is not liable for any misuse, violations of any Terms of Service, or potential bans. Use at your own risk.
subdivx.com is not involved in this development.
GNU General Public License v3.0 See COPYING to see the full text.



