Pytube Tool
pytube-tool is a Python-based command-line utility for downloading YouTube videos. By simply providing a YouTube video URL, users can select their preferred format and download the video efficiently.
Contents
Features | Installation | Install from PyPI | Build from Source | Usage | Example Usage | Development
Features
- Command-Line Interface (CLI): Download YouTube videos using simple terminal commands.
- Format Selection: Choose from available video and audio formats before downloading.
- High-Quality Video: Supports downloading videos in resolutions such as 720p, 1080p, and higher, if available.
- Audio-Only Downloads: Extract and download the audio portion of a video.
- Batch Downloading: Download multiple videos using a list of URLs from a file.
- Fast and Efficient: Optimized to download videos quickly while maintaining quality.
Installation
Option 1: Install from PyPI
To install pytube-tool directly from PyPI:
pip install pytube-tool
Option 2: Build from Source
For those who prefer to build it themselves:
-
Clone the repository and navigate to the project directory:
git clone https://github.com/h471x/youtube_downloader.git cd youtube_downloader
-
Install required packages:
pip install -r requirements.txt
-
Build the package:
python setup.py sdist bdist_wheel
-
Install the package:
pip install dist/*.whl
Usage
Once the package is installed, you can use the pytube command from the terminal. The script accepts the following command-line arguments:
-
Download Video:
- Provide the URL of the YouTube video you wish to download.
-
Format Selection:
- During the download process, the tool will list available formats (video resolutions and audio-only) and prompt you to select one.
-
Batch Processing:
- Use a file containing a list of YouTube video URLs to download multiple videos at once.
-
Help Option:
-hor--help: Display the help message with all available options.
Example Usage
-
Download a Single Video:
pytube --url https://www.youtube.com/watch?v=dQw4w9WgXcQ
The tool will list available formats, allowing you to select your preferred option.
-
Batch Download:
pytube -b urls.txt
urls.txtshould contain one YouTube URL per line. -
Help Option: For help with command-line options, use:
pytube -h
Development
To modify or extend the functionality, ensure you have the required dependencies installed. You can add new features or optimize existing ones as needed.
Adding New Features
- Support for Playlists: Extend the tool to handle full playlist downloads.
- Download Progress Indicator: Implement a visual progress bar for downloads.
- Improved Format Filtering: Enhance format selection to include additional criteria like frame rate or bit rate.
Contributing
Feel free to fork this repository, open issues, or submit pull requests with improvements or bug fixes. Your contributions help make the pytube-tool better!
Metadata
Release files for pytube-tool 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytube-tool-0.1.2.tar.gz | 183.2 kB | Without provenance | Details for pytube-tool-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytube_tool-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pytube_tool-0.1.2-py3-none-any.whl |
Total release size: 194.1 kB
Release files / pytube-tool-0.1.2.tar.gz
| Download URL | pytube-tool-0.1.2.tar.gz |
|---|---|
| Size | 183.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f904ad720b9b9d2091568371a2d1fe1fe22680990d386006d2f8db74cfa76c1d
|
|
BLAKE2b-256 checksum How to use checksums |
5c41a79869a4c1348836fda7e125c8e48950cc7c11267edfb66c91f6cd9f961d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / pytube_tool-0.1.2-py3-none-any.whl
| Download URL | pytube_tool-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
608a22a6f268ecd5bce6643e1b75d178945b4659f3de5c77e056005e67eeae7b
|
|
BLAKE2b-256 checksum How to use checksums |
051516703c1ff4a4519af775c06754fbca319e84beacffcd009d8b1dafade477
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for pytube-tool 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.