
youtube-dl-interactive 是交互方式下载 youtube 视频的程序。 它需要 youtube-dl、node.js 支持。
安装 youtube-dl-interactive
1 2
| wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/bin/youtube-dl chmod a+rx /usr/bin/youtube-dl
|
1 2 3 4 5 6
| wget https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz tar -xJvf node-v10.16.0-linux-x64.tar.xz mv node-v10.16.0-linux-x64 /usr/local/nodejs
echo "export PATH=/usr/local/nodejs/bin:$PATH" >> /etc/profile source /etc/profile
|
- 安装 youtube-dl-interactive
1
| npm install -g youtube-dl-interactive
|
使用 youtube-dl-interactive
1
| youtube-dl-interactive URL
|
备注
查看 node 版本:
1 2 3
| node -v npm version npx -v
|
更新 youtube-dl 版本:
更新 youtube-dl-interactive 版本:
1 2
| npm i -g youtube-dl-interactive youtube-dl -U
|