Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
Y

youtube-dl

> 编程语言
Open source

Command-line program to download videos from YouTube.com and other video sites

140.8K stars0 likes10 views
WebsiteGitHub

About

Command-line program to download videos from YouTube.com and other video sites

youtube-dl - download videos from youtube.com or other video platforms

  • INSTALLATION
  • DESCRIPTION
  • OPTIONS
  • CONFIGURATION
  • OUTPUT TEMPLATE
  • FORMAT SELECTION
  • VIDEO SELECTION
  • FAQ
  • DEVELOPER INSTRUCTIONS
  • EMBEDDING YOUTUBE-DL
  • BUGS
  • COPYRIGHT INSTALLATION

To install it right away for all UNIX users (Linux, macOS, etc.), type:

bash
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

If you do not have curl, you can alternatively use a recent wget:

bash
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

Windows users can download an .exe file and place it in any location on their PATH except for %SYSTEMROOT%\System32 (e.g. do not put in C:\Windows\System32).

You can also use pip:

sudo -H pip install --upgrade youtube-dl

This command will update youtube-dl if you have already installed it. See the pypi page for more information.

macOS users can install youtube-dl with Homebrew:

bash
brew install youtube-dl

Or with MacPorts:

bash
sudo port install youtube-dl

Alternatively, refer to the developer instructions for how to check out and work with the git repository. For further options, including PGP signatures, see the youtube-dl Download Page. DESCRIPTION youtube-dl is a command-line program to download videos from YouTube.com and a few more sites. It requires the Python interpreter, version 2.6, 2.7, or 3.2+, and it is not platform specific. It should work on your Unix box, on Windows or on macOS. It is released to the public domain, which means you can modify it, redistribute it or use it however you like.

youtube-dl [OPTIONS] URL [URL...]

OPTIONS -h, --help Print this help text and exit --version Print program version and exit -U, --update Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed) -i, --ignore-errors Continue on download errors, for example to skip unavailable videos in a playlist --abort-on-error Abort downloading of further videos (in the playlist or the command line) if an error occurs --dump-user-agent Display the current browser identification --list-extractors List all supported extractors --extractor-descriptions Output descriptions of all supported extractors --force-generic-extractor Force extraction to use the generic extractor --default-search PREFIX Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two videos from google videos for youtube- dl "large apple". Use the value "auto" to let youtube-dl guess ("auto_warning" to emit a warning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching. --ignore-config Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: Do not read the user configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows) --config-location PATH Location of the configuration file; either the path to the config or its

Issues· 4126 open

View all issuesOpen on GitHub
  • #29049

    [youtube] ytdl doesn't find the higher resolution thumbnail

    Updated Sep 28, 2026
  • #33298

    Built BlazFetch

    questionUpdated Sep 28, 2026
  • #30839

    READ THIS BEFORE OPENING A NEW ISSUE! THIS MEANS YOU!

    Updated Sep 27, 2026
  • #33280

    [youtube] no videos returned when downloading playlist

    Updated Sep 19, 2026
  • #33295

    Urplay.se cannot be downloaded from that site

    incompleteUpdated Aug 27, 2026
  • #33244

    [YouTube] HTTP Error 403: Forbidden

    broken-IEUpdated Aug 23, 2026
  • #31585

    New Release?

    questionUpdated Aug 22, 2026
  • #30129

    /usr/bin/env: ‘python’: No such file or directory

    documentationnot-a-buglinuxUpdated Aug 19, 2026
  • #32011

    cbsnews.com broken for weeks

    broken-IEpatch-availableyt-dlpUpdated Aug 18, 2026
  • #33282

    Reddit: Fails to pull with 403: Blocked

    Updated Aug 18, 2026

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言