### fix to cipher issue in pytube.
### Added fix for other client replated issues,
### this will resolve some issues related to pytube but is not activly maintained. Try to switch to https://github.com/yt-dlp/yt-dlp if possible
<div align="center">
<p>
<a href="#"><img src="https://assets.nickficano.com/gh-pytube.min.svg" width="456" height="143" alt="pytube logo" /></a>
</p>
<p align="center">
<a href="https://pypi.org/project/pytube/"><img src="https://img.shields.io/pypi/dm/pytube?style=flat-square" alt="pypi"/></a>
<a href="https://pytube.io/en/latest/"><img src="https://readthedocs.org/projects/python-pytube/badge/?version=latest&style=flat-square" /></a>
<a href="https://pypi.org/project/pytube/"><img src="https://img.shields.io/pypi/v/pytube?style=flat-square" /></a>
</p>
</div>
### Actively soliciting contributors!
Have ideas for how pytube can be improved? Feel free to open an issue or a pull request!
# pytube-cipher-fix
*pytube* is a genuine, lightweight, dependency-free Python library (and command-line utility) for downloading YouTube videos.
## Documentation
Detailed documentation about the usage of the library can be found at [pytube.io](https://pytube.io). This is recommended for most cases. If you want to hastily download a single video, the [quick start](#Quickstart) guide below might be what you're looking for.
## Description
YouTube is the most popular video-sharing platform in the world and as a hacker, you may encounter a situation where you want to script something to download videos. For this, I present to you: *pytube*.
*pytube* is a lightweight library written in Python. It has no third-party
dependencies and aims to be highly reliable.
*pytube* also makes pipelining easy, allowing you to specify callback functions for different download events, such as ``on progress`` or ``on complete``.
Furthermore, *pytube* includes a command-line utility, allowing you to download videos right from the terminal.
## Features
- Support for both progressive & DASH streams
- Support for downloading the complete playlist
- Easily register ``on_download_progress`` & ``on_download_complete`` callbacks
- Command-line interfaced included
- Caption track support
- Outputs caption tracks to .srt format (SubRip Subtitle)
- Ability to capture thumbnail URL
- Extensively documented source code
- No third-party dependencies
## Quickstart
This guide covers the most basic usage of the library. For more detailed information, please refer to [pytube.io](https://pytube.io).
### Installation
Pytube requires an installation of Python 3.6 or greater, as well as pip. (Pip is typically bundled with Python [installations](https://python.org/downloads).)
To install from PyPI with pip:
```bash
$ python -m pip install pytube
```
Sometimes, the PyPI release becomes slightly outdated. To install from the source with pip:
```bash
$ python -m pip install git+https://github.com/pytube/pytube
```
### Using pytube in a Python script
To download a video using the library in a script, you'll need to import the YouTube class from the library and pass an argument of the video URL. From there, you can access the streams and download them.
```python
>>> from pytube import YouTube
>>> YouTube('https://youtu.be/2lAe1cqCOXo').streams.first().download()
>>> yt = YouTube('http://youtube.com/watch?v=2lAe1cqCOXo')
>>> yt.streams
... .filter(progressive=True, file_extension='mp4')
... .order_by('resolution')
... .desc()
... .first()
... .download()
```
### Using the command-line interface
Using the CLI is remarkably straightforward as well. To download a video at the highest progressive quality, you can use the following command:
```bash
$ pytube https://youtube.com/watch?v=2lAe1cqCOXo
```
You can also do the same for a playlist:
```bash
$ pytube https://www.youtube.com/playlist?list=PLS1QulWo1RIaJECMeUT4LFwJ-ghgoSH6n
```
Raw data
{
"_id": null,
"home_page": "https://github.com/pytube/pytube",
"name": "pytube-cypher-fix",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "youtube, download, video, stream, pytube, cipher, fix",
"author": "Shourya",
"author_email": "hey@pytube.io",
"download_url": "https://files.pythonhosted.org/packages/0c/10/e128e07a7b7f878cb1f0abb91f0a0406a2e79163bbe9cb7159ea7e6bd110/pytube_cypher_fix-15.0.2.tar.gz",
"platform": null,
"description": "\n### fix to cipher issue in pytube.\n### Added fix for other client replated issues, \n### this will resolve some issues related to pytube but is not activly maintained. Try to switch to https://github.com/yt-dlp/yt-dlp if possible\n<div align=\"center\">\n <p>\n <a href=\"#\"><img src=\"https://assets.nickficano.com/gh-pytube.min.svg\" width=\"456\" height=\"143\" alt=\"pytube logo\" /></a>\n </p>\n <p align=\"center\">\n\t<a href=\"https://pypi.org/project/pytube/\"><img src=\"https://img.shields.io/pypi/dm/pytube?style=flat-square\" alt=\"pypi\"/></a>\n\t<a href=\"https://pytube.io/en/latest/\"><img src=\"https://readthedocs.org/projects/python-pytube/badge/?version=latest&style=flat-square\" /></a>\n\t<a href=\"https://pypi.org/project/pytube/\"><img src=\"https://img.shields.io/pypi/v/pytube?style=flat-square\" /></a>\n </p>\n</div>\n\n### Actively soliciting contributors!\n\nHave ideas for how pytube can be improved? Feel free to open an issue or a pull request!\n\n# pytube-cipher-fix\n\n*pytube* is a genuine, lightweight, dependency-free Python library (and command-line utility) for downloading YouTube videos.\n\n## Documentation\n\nDetailed documentation about the usage of the library can be found at [pytube.io](https://pytube.io). This is recommended for most cases. If you want to hastily download a single video, the [quick start](#Quickstart) guide below might be what you're looking for.\n\n## Description\n\nYouTube is the most popular video-sharing platform in the world and as a hacker, you may encounter a situation where you want to script something to download videos. For this, I present to you: *pytube*.\n\n*pytube* is a lightweight library written in Python. It has no third-party\ndependencies and aims to be highly reliable.\n\n*pytube* also makes pipelining easy, allowing you to specify callback functions for different download events, such as ``on progress`` or ``on complete``.\n\nFurthermore, *pytube* includes a command-line utility, allowing you to download videos right from the terminal.\n\n## Features\n\n- Support for both progressive & DASH streams\n- Support for downloading the complete playlist\n- Easily register ``on_download_progress`` & ``on_download_complete`` callbacks\n- Command-line interfaced included\n- Caption track support\n- Outputs caption tracks to .srt format (SubRip Subtitle)\n- Ability to capture thumbnail URL\n- Extensively documented source code\n- No third-party dependencies\n\n## Quickstart\n\nThis guide covers the most basic usage of the library. For more detailed information, please refer to [pytube.io](https://pytube.io).\n\n### Installation\n\nPytube requires an installation of Python 3.6 or greater, as well as pip. (Pip is typically bundled with Python [installations](https://python.org/downloads).)\n\nTo install from PyPI with pip:\n\n```bash\n$ python -m pip install pytube\n```\n\nSometimes, the PyPI release becomes slightly outdated. To install from the source with pip:\n\n```bash\n$ python -m pip install git+https://github.com/pytube/pytube\n```\n\n### Using pytube in a Python script\n\nTo download a video using the library in a script, you'll need to import the YouTube class from the library and pass an argument of the video URL. From there, you can access the streams and download them.\n\n```python\n >>> from pytube import YouTube\n >>> YouTube('https://youtu.be/2lAe1cqCOXo').streams.first().download()\n >>> yt = YouTube('http://youtube.com/watch?v=2lAe1cqCOXo')\n >>> yt.streams\n ... .filter(progressive=True, file_extension='mp4')\n ... .order_by('resolution')\n ... .desc()\n ... .first()\n ... .download()\n```\n\n### Using the command-line interface\n\nUsing the CLI is remarkably straightforward as well. To download a video at the highest progressive quality, you can use the following command:\n```bash\n$ pytube https://youtube.com/watch?v=2lAe1cqCOXo\n```\n\nYou can also do the same for a playlist:\n```bash\n$ pytube https://www.youtube.com/playlist?list=PLS1QulWo1RIaJECMeUT4LFwJ-ghgoSH6n\n```\n",
"bugtrack_url": null,
"license": "The Unlicense (Unlicense)",
"summary": "Fix to pytube download issue , Python 3 library for downloading YouTube Videos.",
"version": "15.0.2",
"project_urls": {
"Bug Reports": "https://github.com/shouryashashank/pytube-cipher-fix",
"Homepage": "https://github.com/pytube/pytube"
},
"split_keywords": [
"youtube",
" download",
" video",
" stream",
" pytube",
" cipher",
" fix"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "84b1b31cff332865069e075eb99bf0c7265ab7f17bd5d3bd08fb4388fa236270",
"md5": "90bc2b64a166260badd4252a31195b68",
"sha256": "48ab115b4063ff48f124ca469ce202eaa4671e98e8d56472de18c176d416eb7e"
},
"downloads": -1,
"filename": "pytube_cypher_fix-15.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "90bc2b64a166260badd4252a31195b68",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 57828,
"upload_time": "2024-11-15T09:15:15",
"upload_time_iso_8601": "2024-11-15T09:15:15.185553Z",
"url": "https://files.pythonhosted.org/packages/84/b1/b31cff332865069e075eb99bf0c7265ab7f17bd5d3bd08fb4388fa236270/pytube_cypher_fix-15.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0c10e128e07a7b7f878cb1f0abb91f0a0406a2e79163bbe9cb7159ea7e6bd110",
"md5": "ce8284d6b6320a5352b77fdddea365ad",
"sha256": "8c51521eefdb7af0bfbc50990425bd9496e0bc365452ccc5c4e4d3f39ca8e543"
},
"downloads": -1,
"filename": "pytube_cypher_fix-15.0.2.tar.gz",
"has_sig": false,
"md5_digest": "ce8284d6b6320a5352b77fdddea365ad",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 68902,
"upload_time": "2024-11-15T09:15:17",
"upload_time_iso_8601": "2024-11-15T09:15:17.052036Z",
"url": "https://files.pythonhosted.org/packages/0c/10/e128e07a7b7f878cb1f0abb91f0a0406a2e79163bbe9cb7159ea7e6bd110/pytube_cypher_fix-15.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-15 09:15:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pytube",
"github_project": "pytube",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pytube-cypher-fix"
}