141,520
stars
+19
10,683
forks
2,135
watchers
5,025
prs
26,832
issues
341
releases
0
discussions
README
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:
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:
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:
brew install youtube-dl
Or with MacPorts:
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
Top issues
#31530[YouTube] Unable to extract uploader id634 comments · 2023-02-16#29956[FranceTV] Download no longer possible196 comments · 2021-09-13#31585New Release?122 comments · 2023-02-18#12724[ADN] impossible to extract subtitles91 comments · 2017-04-12#622Download range88 comments · 2013-01-08#16359[ESPN] ESPN+ "Unable to open key file" and "ffmpeg exited with code 1"77 comments · 2018-05-02#28042Youtube-dl can't merge VP9+Opus youtube videos54 comments · 2021-02-01#32499ERROR: Unable to extract yt initial data on playlist52 comments · 2023-08-11
Latest release
youtube-dl 2021.12.17 2021.12.17 2021-12-16This release is old and has many known issues. See "... commits to master since this release" above. You almost certainly want the nightly build release, and not this one. The nightly build is created from the master branch of this repo if changes have been committed since the last build. Read about Installation of the nightly build. Major fixes in the nightly build are listed here. Core [postprocessor/ffmpeg] Show ffmpeg output on error (22680, 29336) Extractors [youtube] Update signature function patterns (30363, 30366) [peertube] Only call description endpoint if necessary (2
相关报道 (6)
T客邦史上最強影片下載神器 youtube-dl 回歸!GitHub拒絕RIAA移除通知,並啟動100萬美元的保護基金2020-11-19Plisioyt-dlp 指南 2026:安装、命令、法律地位2026-05-08量子位“治不了GitHub,还治不了你?”唱片行业追杀youtube-dl2022-03-08China Digital TimesGFW Blog|使用 Youtube-DL 离线下载 YouTube 视频并且 VPS 上在线观看2021-01-24雷峰网捍卫开发者!GitHub重新上架星标7.2万热门开源项目YouTube-dl,是哪里来的底气?2020-11-17腾讯新闻GitHub 下架 Youtube-dl 遭粉丝疯狂上传源码报复,开源者的权益谁来维护?2020-11-06
News & coverage (18)
Hacker NewsYouTube-dl can no longer download age-restricted videos▲ 596 · 445 comments · 2021-06-01Hacker NewsYouTube-dl's first release since June 2021▲ 339 · 106 comments · 2021-12-17Hacker NewsMove myself to inactive▲ 278 · 140 comments · 2021-12-19Hacker NewsYouTube-dl is under new management, will be happy to see new PRs▲ 163 · 58 comments · 2022-01-29Hacker NewsYouTube throttling download through yt-dl▲ 29 · 4 comments · 2021-11-02Hacker NewsCommand-line program to download videos from YouTube.com and other video sites▲ 8 · 5 comments · 2020-03-06Hacker NewsCommand-line program to download videos from YouTube▲ 5 · 2 comments · 2019-07-03ZDNetGitHub reinstates youtube-dl library after EFF intervention2020-11-16BleepingComputerGitHub reinstates YouTube-dl, promises to overhaul DMCA reviews2020-11-16torrentfreakGitHub Reinstates Youtube-DL and Puts $1M in Takedown Defense Fund2020-11-16