Pyutube is a small CLI for downloading YouTube videos, shorts, audio, and playlists.
Note
Have a feature request or bug report? tell me
pip install pyutubeFor local development:
pip install -e ".[dev]"pyutube "<youtube-url>"
pyutube "<youtube-url>" "/path/to/save"
pyutube "<youtube-url>" -a
pyutube "<youtube-url>" -f
pyutube "<playlist-url>"
pyutube "<youtube-url>" -- --ignore-errors --write-info-jsonShort version:
URLis required.PATHis optional and defaults to the current directory.-adownloads audio only (as MP3).-fdownloads video only.- Playlist URLs first show a selection menu so you can choose specific items or download all.
- Anything after
--is forwarded toyt-dlp.
Check the CLI help:
pyutube --help
python -m pyutube --help- EXAMPLES.md for quick command examples.
- QUALITY.md for local checks.
- CONTRIBUTING.md for contribution rules.
MIT. See LICENSE.