Skip to main content

A Python package for scraping and downloading subtitles from AppleTV / iTunes movie pages.

Project description

iSubRip

A Python package for scraping and downloading subtitles from AppleTV / iTunes movie pages.
Latest version: 2.5.0 (changelog)


PyPI - Version PyPI - Monthly Downloads PyPI - Total Downloads PyPI - Python Version GitHub - License GitHub - issues GitHub - Repo stars

Requirements

  • Python 3.8+

Installation

PyPI (Recommended)

python3 -m pip install isubrip

Git Source Code

python3 -m pip install -e git+https://github.com/MichaelYochpaz/iSubRip.git#egg=isubrip

Usage

isubrip <iTunes movie URL> [iTunes movie URL...]

Configuration

A TOML config file can be created and used to configure different options and features. A config file will be looked for in one of the following paths (according to OS):

Windows: %USERPROFILE%\.isubrip\config.toml
Linux / macOS: $HOME/.isubrip/config.toml

Examples:

Windows: C:\Users\Michael\.isubrip\config.toml
Linux: /home/Michael/.isubrip/config.toml
macOS: /Users/Michael/.isubrip/config.toml


Example Config:

[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

A complete config with all the available options and explanations for each configuration can be found here.

Logs

A log file, containing debug information, will be created for each run on one of the following paths (according to OS):

Windows: %USERPROFILE%\.isubrip\logs
Linux / macOS: $HOME/.isubrip/logs

Log rotation (deletion of old files, once a certain amount of files is reached) can be configured in the config file using the general.log-rotation-size setting. The default log rotation value is 15.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isubrip-2.5.0.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

isubrip-2.5.0-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

Details for the file isubrip-2.5.0.tar.gz.

File metadata

  • Download URL: isubrip-2.5.0.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Windows/10

File hashes

Hashes for isubrip-2.5.0.tar.gz
Algorithm Hash digest
SHA256 7abe7f90b8b702a155ee1556f437cfeddfddcc0ca6eef60f083b6db67b4087a8
MD5 6cc2c48499eb1f4ab0402525b0f9d05c
BLAKE2b-256 c87533989b5fe97adc12ea952d375463c94841055480864f660c3071ece0fc8d

See more details on using hashes here.

File details

Details for the file isubrip-2.5.0-py3-none-any.whl.

File metadata

  • Download URL: isubrip-2.5.0-py3-none-any.whl
  • Upload date:
  • Size: 40.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Windows/10

File hashes

Hashes for isubrip-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b55a910d871cd9a31ce3891049886baa4feed0f2344a7d179c8aae2dde30b885
MD5 4ef551ddc98cdebae60d5ab5490293d2
BLAKE2b-256 930559fbd1e11619e4d5176e4c951048e21a0ee193fd615396a47f40fb32c4f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page