isubrip


Nameisubrip JSON
Version 2.5.6 PyPI version JSON
download
home_pagehttps://github.com/MichaelYochpaz/iSubRip
SummaryA Python package for scraping and downloading subtitles from AppleTV / iTunes movie pages.
upload_time2024-07-07 09:11:26
maintainerNone
docs_urlNone
authorMichael Yochpaz
requires_python<4.0,>=3.8
licenseMIT
keywords itunes appletv movies subtitles scrape scraper download m3u8
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # iSubRip
**iSubRip** is a Python command-line tool for scraping and downloading subtitles from AppleTV and iTunes movie pages.

<div align="center">
  <a href="https://python.org/pypi/isubrip"><img alt="Python Version" src="https://img.shields.io/pypi/pyversions/isubrip"></a>
  <a href="https://python.org/pypi/isubrip"><img alt="PyPI Version" src="https://img.shields.io/pypi/v/isubrip"></a>
  <a href="https://github.com/MichaelYochpaz/iSubRip/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/MichaelYochpaz/iSubRip"></a>

  <a href="https://python.org/pypi/isubrip"><img alt="Monthly Downloads" src="https://pepy.tech/badge/isubrip/month"></a>
  <a href="https://python.org/pypi/isubrip"><img alt="Total Downloads" src="https://pepy.tech/badge/isubrip"></a>
  <a href="https://github.com/MichaelYochpaz/iSubRip"><img alt="Repo Stars" src="https://img.shields.io/github/stars/MichaelYochpaz/iSubRip?style=flat&color=gold"></a>
  <a href="https://github.com/MichaelYochpaz/iSubRip/issues"><img alt="Issues" src="https://img.shields.io/github/issues/MichaelYochpaz/iSubRip?color=red"></a>
</div>

<br/>

<div align="center">
  <img src="https://github-production-user-asset-6210df.s3.amazonaws.com/8832013/290989935-e6a17af6-1ebb-456d-a024-dc6e84dd64b2.gif" width="800">
</div>


---

## ✨ Features
- Scrape subtitles from AppleTV and iTunes movies without needing a purchase or account.
- Retrieve the expected streaming release date (if available) for unreleased movies.
- Utilize asynchronous downloading to speed up the download of chunked subtitles.
- Automatically convert subtitles to SubRip (SRT) format.
- Fix right-to-left (RTL) alignment in RTL language subtitles automatically.
- Configure settings such as download folder, preferred languages, and toggling features.

## 🚀 Quick Start
### Installation
```shell
pip install isubrip
```

### Usage
```shell
isubrip <URL> [URL...]
```
<sub>(URL can be either an AppleTV or iTunes movie URL)</sub>

<br/>

> [!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](https://toml.io) 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:

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

### Path Examples
- **Windows**: `C:\Users\Michael\.isubrip\config.toml`
- **Linux**: `/home/Michael/.isubrip/config.toml`
- **macOS**: `/Users/Michael/.isubrip/config.toml`


### Example Configuration
```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](https://github.com/MichaelYochpaz/iSubRip/blob/main/config.toml).

## 📜 Logs
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](https://github.com/MichaelYochpaz/iSubRip/blob/main/config.toml).


## 📓 Changelog
The changelog for the latest, and all previous versions, can be found [here](https://github.com/MichaelYochpaz/iSubRip/blob/main/CHANGELOG.md).

## 👨🏽‍💻 Contributing
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.

## 🙏🏽 Support
If you find this project helpful, please consider supporting it by:
- 🌟 Starring the repository
- 💖 [Sponsoring the project](https://github.com/sponsors/MichaelYochpaz)

## ❤️ Special Thanks
Thanks to **JetBrains** for generously providing a free open-source [PyCharm](https://www.jetbrains.com/pycharm/) license to help work on this project, through their [Open Source Support Program](https://www.jetbrains.com/community/opensource/).

[![PyCharm Logo](https://resources.jetbrains.com/storage/products/company/brand/logos/PyCharm_icon.svg)](https://www.jetbrains.com/community/opensource/#support)

## 📝 End User License Agreement
By using iSubRip, you agree to the following terms:

1. **Disclaimer of Affiliation**: iSubRip is an independent, open-source project. It is not affiliated with, endorsed by, or in any way officially connected to Apple Inc., iTunes, or AppleTV.
2. **Educational Purpose**: This tool is developed and provided for educational and research purposes only. It demonstrates techniques for accessing and processing publicly available, unencrypted subtitle data from HLS playlists.
3. **User Responsibility and Compliance**: Any use of iSubRip is solely at the user's own risk and discretion. Users are responsible for ensuring that their use of the tool complies with all applicable laws, regulations, and terms of service of the content providers. This includes adhering to local, state, national, and international laws and regulations.
4. **Limitation of Liability**: The developers of iSubRip shall not be held responsible for any legal consequences arising from the use of this tool. This includes, but is not limited to, claims of copyright infringement, intellectual property violations, or breaches of terms of service of content providers. Users assume all risks associated with acquiring and using subtitle data through this tool.

By using iSubRip, you acknowledge that you have read, understood, and agree to be bound by this agreement's terms and conditions.

## ⚖️ License
This project is licensed under the MIT License. For more details, see the [LICENSE file](https://github.com/MichaelYochpaz/iSubRip/blob/main/LICENSE).


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/MichaelYochpaz/iSubRip",
    "name": "isubrip",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.8",
    "maintainer_email": null,
    "keywords": "iTunes, AppleTV, movies, subtitles, scrape, scraper, download, m3u8",
    "author": "Michael Yochpaz",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/6f/39/e1580e9cf56585ba1cd2c2c8c6ddf708e7b1e10fb051f970e444a5691178/isubrip-2.5.6.tar.gz",
    "platform": null,
    "description": "# iSubRip\n**iSubRip** is a Python command-line tool for scraping and downloading subtitles from AppleTV and iTunes movie pages.\n\n<div align=\"center\">\n  <a href=\"https://python.org/pypi/isubrip\"><img alt=\"Python Version\" src=\"https://img.shields.io/pypi/pyversions/isubrip\"></a>\n  <a href=\"https://python.org/pypi/isubrip\"><img alt=\"PyPI Version\" src=\"https://img.shields.io/pypi/v/isubrip\"></a>\n  <a href=\"https://github.com/MichaelYochpaz/iSubRip/blob/main/LICENSE\"><img alt=\"License\" src=\"https://img.shields.io/github/license/MichaelYochpaz/iSubRip\"></a>\n\n  <a href=\"https://python.org/pypi/isubrip\"><img alt=\"Monthly Downloads\" src=\"https://pepy.tech/badge/isubrip/month\"></a>\n  <a href=\"https://python.org/pypi/isubrip\"><img alt=\"Total Downloads\" src=\"https://pepy.tech/badge/isubrip\"></a>\n  <a href=\"https://github.com/MichaelYochpaz/iSubRip\"><img alt=\"Repo Stars\" src=\"https://img.shields.io/github/stars/MichaelYochpaz/iSubRip?style=flat&color=gold\"></a>\n  <a href=\"https://github.com/MichaelYochpaz/iSubRip/issues\"><img alt=\"Issues\" src=\"https://img.shields.io/github/issues/MichaelYochpaz/iSubRip?color=red\"></a>\n</div>\n\n<br/>\n\n<div align=\"center\">\n  <img src=\"https://github-production-user-asset-6210df.s3.amazonaws.com/8832013/290989935-e6a17af6-1ebb-456d-a024-dc6e84dd64b2.gif\" width=\"800\">\n</div>\n\n\n---\n\n## \u2728 Features\n- Scrape subtitles from AppleTV and iTunes movies without needing a purchase or account.\n- Retrieve the expected streaming release date (if available) for unreleased movies.\n- Utilize asynchronous downloading to speed up the download of chunked subtitles.\n- Automatically convert subtitles to SubRip (SRT) format.\n- Fix right-to-left (RTL) alignment in RTL language subtitles automatically.\n- Configure settings such as download folder, preferred languages, and toggling features.\n\n## \ud83d\ude80 Quick Start\n### Installation\n```shell\npip install isubrip\n```\n\n### Usage\n```shell\nisubrip <URL> [URL...]\n```\n<sub>(URL can be either an AppleTV or iTunes movie URL)</sub>\n\n<br/>\n\n> [!WARNING]\n> iSubRip is not recommended for use as a library in other projects.  \n> The API frequently changes, and breaking changes to the API are common, even in minor versions.\n>\n> Support will not be provided for issues arising from using this package as a library.\n## \ud83d\udee0 Configuration\nA [TOML](https://toml.io) configuration file can be created to customize various options and features.\n\nThe configuration file will be searched for in one of the following paths based on your operating system:\n\n- **Windows**: `%USERPROFILE%\\.isubrip\\config.toml`\n- **Linux / macOS**: `$HOME/.isubrip/config.toml`\n\n### Path Examples\n- **Windows**: `C:\\Users\\Michael\\.isubrip\\config.toml`\n- **Linux**: `/home/Michael/.isubrip/config.toml`\n- **macOS**: `/Users/Michael/.isubrip/config.toml`\n\n\n### Example Configuration\n```toml\n[downloads]\nfolder = \"C:\\\\Subtitles\\\\iTunes\"\nlanguages = [\"en-US\", \"fr-FR\", \"he\"]\nzip = false\n\n[subtitles]\nconvert-to-srt = true\nfix-rtl = true\n\n[subtitles.webvtt]\nsubrip-alignment-conversion = true\n```\n\nAn example config with details and explanations for all available settings can be found [here](https://github.com/MichaelYochpaz/iSubRip/blob/main/config.toml).\n\n## \ud83d\udcdc Logs\nLog files are created for each run in the following paths, depending on your operating system:\n\n**Windows**: `%USERPROFILE%\\.isubrip\\logs`  \n**Linux / macOS**: `$HOME/.isubrip/logs`  \n\nLog 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`.\n\nFor more details, see the [example configuration](https://github.com/MichaelYochpaz/iSubRip/blob/main/config.toml).\n\n\n## \ud83d\udcd3 Changelog\nThe changelog for the latest, and all previous versions, can be found [here](https://github.com/MichaelYochpaz/iSubRip/blob/main/CHANGELOG.md).\n\n## \ud83d\udc68\ud83c\udffd\u200d\ud83d\udcbb Contributing\nThis project is open-source but currently lacks the infrastructure to fully support external contributions.\n\nIf you wish to contribute, please open an issue first to discuss your proposed changes to avoid working on something that might not be accepted.\n\n## \ud83d\ude4f\ud83c\udffd Support\nIf you find this project helpful, please consider supporting it by:\n- \ud83c\udf1f Starring the repository\n- \ud83d\udc96 [Sponsoring the project](https://github.com/sponsors/MichaelYochpaz)\n\n## \u2764\ufe0f Special Thanks\nThanks to **JetBrains** for generously providing a free open-source [PyCharm](https://www.jetbrains.com/pycharm/) license to help work on this project, through their [Open Source Support Program](https://www.jetbrains.com/community/opensource/).\n\n[![PyCharm Logo](https://resources.jetbrains.com/storage/products/company/brand/logos/PyCharm_icon.svg)](https://www.jetbrains.com/community/opensource/#support)\n\n## \ud83d\udcdd End User License Agreement\nBy using iSubRip, you agree to the following terms:\n\n1. **Disclaimer of Affiliation**: iSubRip is an independent, open-source project. It is not affiliated with, endorsed by, or in any way officially connected to Apple Inc., iTunes, or AppleTV.\n2. **Educational Purpose**: This tool is developed and provided for educational and research purposes only. It demonstrates techniques for accessing and processing publicly available, unencrypted subtitle data from HLS playlists.\n3. **User Responsibility and Compliance**: Any use of iSubRip is solely at the user's own risk and discretion. Users are responsible for ensuring that their use of the tool complies with all applicable laws, regulations, and terms of service of the content providers. This includes adhering to local, state, national, and international laws and regulations.\n4. **Limitation of Liability**: The developers of iSubRip shall not be held responsible for any legal consequences arising from the use of this tool. This includes, but is not limited to, claims of copyright infringement, intellectual property violations, or breaches of terms of service of content providers. Users assume all risks associated with acquiring and using subtitle data through this tool.\n\nBy using iSubRip, you acknowledge that you have read, understood, and agree to be bound by this agreement's terms and conditions.\n\n## \u2696\ufe0f License\nThis project is licensed under the MIT License. For more details, see the [LICENSE file](https://github.com/MichaelYochpaz/iSubRip/blob/main/LICENSE).\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python package for scraping and downloading subtitles from AppleTV / iTunes movie pages.",
    "version": "2.5.6",
    "project_urls": {
        "Bug Reports": "https://github.com/MichaelYochpaz/iSubRip/issues",
        "Homepage": "https://github.com/MichaelYochpaz/iSubRip",
        "Repository": "https://github.com/MichaelYochpaz/iSubRip"
    },
    "split_keywords": [
        "itunes",
        " appletv",
        " movies",
        " subtitles",
        " scrape",
        " scraper",
        " download",
        " m3u8"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3b552569c0e1c73e6c6422ab7624f8168904ec377e774d16632ecf98aa3c9f8e",
                "md5": "876c54be079df979f8f82da55762bcaf",
                "sha256": "db5d00fd50f1f47502152d95735017c23f0f32f3e1fb76f7926695b883a8de0b"
            },
            "downloads": -1,
            "filename": "isubrip-2.5.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "876c54be079df979f8f82da55762bcaf",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 47632,
            "upload_time": "2024-07-07T09:11:24",
            "upload_time_iso_8601": "2024-07-07T09:11:24.413349Z",
            "url": "https://files.pythonhosted.org/packages/3b/55/2569c0e1c73e6c6422ab7624f8168904ec377e774d16632ecf98aa3c9f8e/isubrip-2.5.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6f39e1580e9cf56585ba1cd2c2c8c6ddf708e7b1e10fb051f970e444a5691178",
                "md5": "8c72ad9173cfc1f30637ea991b6207af",
                "sha256": "7a6e9ac50b2d7585493648a6b698604250acc4c25019c86e2d31f98bd50adbac"
            },
            "downloads": -1,
            "filename": "isubrip-2.5.6.tar.gz",
            "has_sig": false,
            "md5_digest": "8c72ad9173cfc1f30637ea991b6207af",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 38079,
            "upload_time": "2024-07-07T09:11:26",
            "upload_time_iso_8601": "2024-07-07T09:11:26.318486Z",
            "url": "https://files.pythonhosted.org/packages/6f/39/e1580e9cf56585ba1cd2c2c8c6ddf708e7b1e10fb051f970e444a5691178/isubrip-2.5.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-07 09:11:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MichaelYochpaz",
    "github_project": "iSubRip",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "isubrip"
}
        
Elapsed time: 3.76673s