iSubRip is a Python command-line tool for scraping and downloading subtitles from AppleTV and iTunes movie pages.
pip install isubrip
isubrip <URL> [URL...]
(URL can be either an AppleTV or iTunes movie URL)
[!WARNING] iSubRip is not recommended for use as a library in other projects.
The API frequently changes, and breaking changes to the API are common, even in minor versions.Support will not be provided for issues arising from using this package as a library.
🛠 Configuration
A TOML configuration file can be created to customize various options and features.
The configuration file will be searched for in one of the following paths based on your operating system:
%USERPROFILE%\.isubrip\config.toml
$HOME/.isubrip/config.toml
C:\Users\Michael\.isubrip\config.toml
/home/Michael/.isubrip/config.toml
/Users/Michael/.isubrip/config.toml
[downloads]
folder = "C:\\Subtitles\\iTunes"
languages = ["en-US", "fr-FR", "he"]
zip = false
[subtitles]
convert-to-srt = true
fix-rtl = true
[subtitles.webvtt]
subrip-alignment-conversion = true
An example config with details and explanations for all available settings can be found here.
Log files are created for each run in the following paths, depending on your operating system:
Windows: %USERPROFILE%\.isubrip\logs
Linux / macOS: $HOME/.isubrip/logs
Log rotation (deletion of old files once a certain number of files is reached) can be configured in the configuration file using the general.log-rotation-size
setting. The default value is 15
.
For more details, see the example configuration.
The changelog for the latest, and all previous versions, can be found here.
This project is open-source but currently lacks the infrastructure to fully support external contributions.
If you wish to contribute, please open an issue first to discuss your proposed changes to avoid working on something that might not be accepted.
If you find this project helpful, please consider supporting it by:
Thanks to JetBrains for generously providing a free open-source PyCharm license to help work on this project, through their Open Source Support Program.
By using iSubRip, you agree to the following terms:
By using iSubRip, you acknowledge that you have read, understood, and agree to be bound by this agreement's terms and conditions.
This project is licensed under the MIT License. For more details, see the LICENSE file.