CLI tool for download from YouTube
Project description
YouTube Downloader
-
YouTube Video download
- From a video or from a playlist
- Download caption option available
- Selectable resolution
-
YouTube Audio download
- From a video or from a playlist
Installation & Upgrade
-
To install
-
Using
pippip install youtube-downloader-cli -
Using
uvuv tool install youtube-downloader-cli -
Using
uvxto use this tool directly without installuvx youtube-downloader-cli
-
-
To upgrade
-
Using
pippip install --upgrade youtube-downloader-cli -
Using
uvuv tool install --upgrade --reinstall youtube-downloader-cli -
Using
uvxuvx youtube-downloader-cli@latest
-
CLI Application
Step 1. Enter YouTube video URL (auto-detect from clipboard)
Step 2. Choose options
Available options:
1. Download audio only
2. Download video
3. Download video with caption
4. Download audios from playlist
5. Download videos from playlist
Step 3. Choose a directory to save file(s)
Step 4. Choose preferred resolution for video downloading
If option 2, 3, or 5 is chosen in Step 2, please select a preferred resolution for video downloading.
Available options:
SD - 480p
HD - 720p
FullHD - 1080p
QHD - 1440p
4K - 2160p
best
Video with highest resolution, but not higher than user's choice (unless 'best' is chosen), will be downloaded.
Step 5. Choose captions to download
If option 3 is chosen in Step 2, please select which caption(s) to be downloaded. User will only be prompted if more than one caption is available for selected video.
[!Note] If PyTubeFix failed to connect to YouTube, it may need to be upgraded to the newest version.
Using
pip:pip install --upgrade pytubefix.Or using
uv:uv install --upgrade --reinstall youtube-downloader-cli.
[!Tip] When downloading from a playlist (Option 4 & 5), videos/audios will be downloaded in parallel. Maximum number of parallel downloads could be set via environment variable
YTDL_WORKERS(default is 4).
Dependencies
-
For CLI Application
- pyperclip
- pytubefix
- questionary
- rich
-
Of
pytubefixNodeJS is used for POTOKEN generation bypytubefix. If NodeJS is not available, POTOKEN will be skipped, may result in YouTube denyingpytubefix's requests. -
FFMPEG
Progressive stream (both audio & video in one file) in YouTube has lower resolution. If
ffmpegis available, high resolution video & audio will be downloaded separately, then merges usingffmpeg.If
ffmpegis not available in $PATH, progressive stream will be downloaded.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file youtube_downloader_cli-0.3.1rc1.tar.gz.
File metadata
- Download URL: youtube_downloader_cli-0.3.1rc1.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f20682d17614aa3308494d583b8061ca541eb93b2bfc21a5d7b6ac324bb841b7
|
|
| MD5 |
6e5959df772b2d423d6df24e3f7d6070
|
|
| BLAKE2b-256 |
85113f5680fe2d75b7ccc685b49857502c88a86bf3d75895bee83a85affaef6a
|
File details
Details for the file youtube_downloader_cli-0.3.1rc1-py3-none-any.whl.
File metadata
- Download URL: youtube_downloader_cli-0.3.1rc1-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a37584bd48f3684ccb05511e450eae6743a932051ae280bcb7011a7745fe4335
|
|
| MD5 |
e2f2008935f0334e59584a0aee871f9d
|
|
| BLAKE2b-256 |
2eb4b0955ce9f27e5805788a12b79f05602e2d443793af794b6fd198b7c77bea
|