youtube-dl install 2 years ago
今天想在youtube上下载点东西,突然发现不好用了,可能是前些日子将系统升级了,homebrew的支持已经out了
推荐使用下面的万能方式去安装,亲测支持macos,linux!😄
$ git clone https://github.com/ytdl-org/youtube-dl.git youtube-dl
$ cd youtube-dl/
$ make youtube-dl
$ sudo cp youtube-dl /usr/local/bin/
如果报错:未找到python
sudo cp /usr/bin/python3 /usr/bin/python
接着就可以用 youtube-dl [OPTIONS] URL [URL...]
快乐的玩耍了
但是现在明显不够智能,我们需要每次去指定download的目录
按照官方所言,我们可以创建一个系统级的配置文件/etc/youtube-dl.conf
, 我的配置如下:
# Lines starting with # are comments
# Always extract audio
#-x
# Do not copy the mtime
#--no-mtime
# Use this proxy
#--proxy 127.0.0.1:3128
# Save all videos under Movies directory in your home directory
-o /mnt/scott/download/%(title)s.%(ext)s
- 上一篇: photoshop转低分辨率
- 下一篇: nginx默认对文件上传大小有限制