OS Manuals

/usr/bin/pytube

User-friendly AI Interface (Supports Ollama, OpenAI API, ...)

From open-webui 0.9.6-r1 (os), captured 2026-11-05 by running pytube --help (exit 0). permalink

usage: pytube [-h] [--version] [--itag ITAG] [-r RESOLUTION] [-l] [-v] [--logfile LOGFILE]
              [--build-playback-report] [-c CAPTION_CODE] [-lc] [-t TARGET] [-a [AUDIO]]
              [-f [FFMPEG]]
              [url]

Command line application to download youtube videos.

positional arguments:
  url                   The YouTube /watch or /playlist url

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --itag ITAG           The itag for the desired stream
  -r RESOLUTION, --resolution RESOLUTION
                        The resolution for the desired stream
  -l, --list            The list option causes pytube cli to return a list of streams available to
                        download
  -v, --verbose         Set logger output to verbose output.
  --logfile LOGFILE     logging debug and error messages into a log file
  --build-playback-report
                        Save the html and js to disk
  -c CAPTION_CODE, --caption-code CAPTION_CODE
                        Download srt captions for given language code. Prints available language
                        codes if no argument given
  -lc, --list-captions  List available caption codes for a video
  -t TARGET, --target TARGET
                        The output directory for the downloaded stream. Default is current working
                        directory
  -a [AUDIO], --audio [AUDIO]
                        Download the audio for a given URL at the highest bitrate available.
                        Defaults to mp4 format if none is specified
  -f [FFMPEG], --ffmpeg [FFMPEG]
                        Downloads the audio and video stream for resolution provided. If no
                        resolution is provided, downloads the best resolution. Runs the command
                        line program ffmpeg to combine the audio and video
Options (8)
OptionDescriptionSource
-h, --helpshow this help message and exithelp
--versionshow program's version number and exithelp
--itag ITAGThe itag for the desired streamhelp
-l, --listThe list option causes pytube cli to return a list of streams available to downloadhelp
-v, --verboseSet logger output to verbose output.help
--logfile LOGFILElogging debug and error messages into a log filehelp
--build-playback-reportSave the html and js to diskhelp
-lc, --list-captionsList available caption codes for a videohelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.