嘘~~不要声张~~
1,sudo apt-get install youtube-dl
2,修改http代理
vim ~/.bashrc
在最后追加:
http_proxy=http://xxx.xxx.xxx.xxx:yyyy
export http_proxy
注:http_proxy是你的 fan qiang 代理的ip地址和端口号
3,打开一个新的终端:
youtube-dl http://www.youtube.com/watch?v=ksjfsjfslkjfskfjs
搞定:
xxxxx-OptiPlex-380:/opt/dl/talent/2011$ youtube-dl http://www.youtube.com/watch?v=adfsfdsdfsdfsdf
[youtube] Setting language
[youtube] 05aCXVks9nQ: Downloading video webpage
[youtube] 05aCXVks9nQ: Downloading video info webpage
[youtube] 05aCXVks9nQ: Extracting video information
[download] Destination: asdfsdfsdfsf.mp4