1. You-Get 的使用
自從用上MacOS后欧瘪,系統(tǒng)下載的工具也更多樣了眷射。今天說(shuō)一下,you-get
和youtube-dl
下載視頻的方法佛掖。簡(jiǎn)單的比如:
you-get "https://www.bilibili.com/bangumi/play/ep272144/"
涉及到代理的妖碉,比如:
you-get \
"https://www.youtube.com/watch?v=xRAw7yeDO-c&t=134s" \
-s 127.0.0.1:8080
image.png
2. You-Get 安裝
MacOS 自身安裝了 python
, 通過(guò)如下的命令安裝you-get
:
pip3 install you-get pysocks
3. Youtube-dl 安裝
這個(gè)工具支持的網(wǎng)站更多樣,一些直男看的視頻網(wǎng)站也支持芥被。
brew install youtube-dl
4. Youtube-dl 下載視頻
涉及到代理的欧宜,同時(shí)下載油管的自動(dòng)翻譯字幕:
youtube-dl \
"https://www.youtube.com/watch?v=xRAw7yeDO-c&t=134s" \
--proxy socks://127.0.0.1:8080 \
--write-auto-sub
下載普通視頻:
youtube-dl \
"https://www.youtube.com/watch?v=xRAw7yeDO-c&t=134s" \