YouTube-DL

Usage

接Proxy下载

$ youtube-dl https://youtu.be/Kb56GzQ2pSk --proxy "socks5://127.0.0.1/"
[youtube] Kb56GzQ2pSk: Downloading webpage
[youtube] Kb56GzQ2pSk: Downloading video info webpage
[youtube] Kb56GzQ2pSk: Extracting video information
WARNING: unable to extract uploader nickname
[youtube] Kb56GzQ2pSk: Downloading MPD manifest
[download] Destination: Identity, Authentication + OAuth = OpenID Connect-Kb56GzQ2pSk.webm
[download]   2.7% of 8.96MiB at 48.90KiB/s ETA 03:02

假如不想每次都输入--proxy, 可以创建youtube-dl.conf, 路径如下:

// system wide config
/etc/youtube-dl.conf

// user wide configuration file at 
~/.config/youtube-dl/config

// windows
C:\Users\<user name>\youtube-dl.conf
$ vim youtube-dl.conf

// content
# Use this proxy
--proxy http://username:password@127.0.0.1:3128

// or
--proxy socks5://127.0.0.1/

MP3

youtube-dl https://www.youtube.com/watch\?v\=Upw2jrJ5jRI --proxy "socks5://127.0.0.1/" --extract-audio --audio-format mp3

List formats

➜  Desktop youtube-dl https://youtu.be/URyd4bcV-Ik --proxy="socks5://127.0.0.1/" -F

Download specific format

➜  Desktop youtube-dl https://youtu.be/URyd4bcV-Ik --proxy="socks5://127.0.0.1/" -f 22

Update

youtube-dl -U

限速

$ youtube-dl -r 200k https://www.youtube.com/watch?v=mH9TEXhmmwc  

Alternatives

  • netease-dl
  • you-get
Show Comments