安装youtube-dl并下载YouTube视频

本文最后更新于 2024年5月16日。

C:\Users\JOSE>pip install youtube-dl
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting youtube-dl
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/40/93/65c208f51895f74bbfea1423974c54fff1d1c4e9a97ebee1011b021554b8/youtube_dl-2021.12.17-py2.py3-none-any.whl (1.9 MB)
---------------------------------------- 1.9/1.9 MB 3.0 MB/s eta 0:00:00
Installing collected packages: youtube-dl
Successfully installed youtube-dl-2021.12.17
WARNING: There was an error checking the latest version of pip.
C:\Users\JOSE>youtube-dl https://youtu.be/4y33h81phKU
[youtube] 4y33h81phKU: Downloading webpage
[youtube] 4y33h81phKU: Downloading player c8b8a173
[download] Destination: Hans Zimmer - Interstellar - Main Theme (Piano Version) + Sheet Music-4y33h81phKU.mp4
[download] 100% of 12.32MiB in 04:15