Awesome CLI to download YouTube videos (as video or audio)/shorts/playlists from the terminal
Project description
Pyutube
Pyutube is a small CLI for downloading YouTube videos, shorts, audio, and playlists.
[!IMPORTANT]
ffmpegmust be on yourPATHfor video merging and audio conversion.
Install
pip install pyutube
For local development:
pip install -e ".[dev]"
Use
pyutube "<youtube-url>"
pyutube "<youtube-url>" "/path/to/save"
pyutube "<youtube-url>" -a
pyutube "<youtube-url>" -a --mp3
pyutube "<youtube-url>" -f
pyutube "<playlist-url>"
pyutube "<youtube-url>" -- --ignore-errors --write-info-json
Short version:
URLis required.PATHis optional and defaults to the current directory.-adownloads audio only.--mp3converts audio output to MP3.-fdownloads video only.- Anything after
--is forwarded toyt-dlp.
Check the CLI help:
pyutube --help
python -m pyutube --help
Docs
- EXAMPLES.md for quick command examples.
- QUALITY.md for local checks.
- CONTRIBUTING.md for contribution rules.
License
MIT. See LICENSE.
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 pyutube-1.6.1.tar.gz.
File metadata
- Download URL: pyutube-1.6.1.tar.gz
- Upload date:
- Size: 18.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8aa574819388ed6b301f7a36608a3600a385cfc755efe7ee307d0f467b3787f
|
|
| MD5 |
77cf6fa3b65aed65247df434da8bc5eb
|
|
| BLAKE2b-256 |
3870bf873a39bfc24e9b0ca88ceb1c7cd69d0d05723991be22e6bd4176ad8e4f
|
File details
Details for the file pyutube-1.6.1-py3-none-any.whl.
File metadata
- Download URL: pyutube-1.6.1-py3-none-any.whl
- Upload date:
- Size: 24.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93dedf10150275b6e2381b1e6b67772cfb83d3b4c903c8ab1fbbca831b1bb0bc
|
|
| MD5 |
1907fffaed249c165d8ac456638f3773
|
|
| BLAKE2b-256 |
dd7b7c1290bb1e8b6c0a946e200d739fc786dbd6fc75ed6e74da3f50ce15faf9
|