Skip to main content

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] ffmpeg must be on your PATH for 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:

  • URL is required.
  • PATH is optional and defaults to the current directory.
  • -a downloads audio only.
  • --mp3 converts audio output to MP3.
  • -f downloads video only.
  • Anything after -- is forwarded to yt-dlp.

Check the CLI help:

pyutube --help
python -m pyutube --help

Docs

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

pyutube-1.6.1.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyutube-1.6.1-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

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

Hashes for pyutube-1.6.1.tar.gz
Algorithm Hash digest
SHA256 a8aa574819388ed6b301f7a36608a3600a385cfc755efe7ee307d0f467b3787f
MD5 77cf6fa3b65aed65247df434da8bc5eb
BLAKE2b-256 3870bf873a39bfc24e9b0ca88ceb1c7cd69d0d05723991be22e6bd4176ad8e4f

See more details on using hashes here.

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

Hashes for pyutube-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93dedf10150275b6e2381b1e6b67772cfb83d3b4c903c8ab1fbbca831b1bb0bc
MD5 1907fffaed249c165d8ac456638f3773
BLAKE2b-256 dd7b7c1290bb1e8b6c0a946e200d739fc786dbd6fc75ed6e74da3f50ce15faf9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page