很多时候在外网看到不错的视频,会想下载下来收藏,或者看到不错的素材会需要下载下来做视频。但是官方没有提供下载的地方。简单的方法也找不到资源的真实地址。这里就介绍一个神器,
you-get
, github地址
目前支持的网站:
Site
URL
Videos?
Images?
Audios?
YouTube
https://www.youtube.com/
✓
Twitter
https://twitter.com/
✓
✓
VK
http://vk.com/
✓
✓
Vine
https://vine.co/
✓
Vimeo
https://vimeo.com/
✓
Veoh
http://www.veoh.com/
✓
Tumblr
https://www.tumblr.com/
✓
✓
✓
TED
http://www.ted.com/
✓
SoundCloud
https://soundcloud.com/
✓
SHOWROOM
https://www.showroom-live.com/
✓
Pinterest
https://www.pinterest.com/
✓
MTV81
http://www.mtv81.com/
✓
Mixcloud
https://www.mixcloud.com/
✓
Metacafe
http://www.metacafe.com/
✓
Magisto
http://www.magisto.com/
✓
Khan Academy
https://www.khanacademy.org/
✓
Internet Archive
https://archive.org/
✓
Instagram
https://instagram.com/
✓
✓
InfoQ
http://www.infoq.com/presentations/
✓
Imgur
http://imgur.com/
✓
Heavy Music Archive
http://www.heavy-music.ru/
✓
Freesound
http://www.freesound.org/
✓
Flickr
https://www.flickr.com/
✓
✓
FC2 Video
http://video.fc2.com/
✓
Facebook
https://www.facebook.com/
✓
eHow
http://www.ehow.com/
✓
Dailymotion
http://www.dailymotion.com/
✓
Coub
http://coub.com/
✓
CBS
http://www.cbs.com/
✓
Bandcamp
http://bandcamp.com/
✓
AliveThai
http://alive.in.th/
✓
interest.me
http://ch.interest.me/tvn
✓
755 ナナゴーゴー
http://7gogo.jp/
✓
✓
niconico ニコニコ動画
http://www.nicovideo.jp/
✓
163 网易视频 网易云音乐
http://v.163.com/ http://music.163.com/
✓
✓
56网
http://www.56.com/
✓
AcFun
http://www.acfun.cn/
✓
Baidu 百度贴吧
http://tieba.baidu.com/
✓
✓
爆米花网
http://www.baomihua.com/
✓
bilibili 哔哩哔哩
http://www.bilibili.com/
✓
✓
✓
豆瓣
http://www.douban.com/
✓
✓
斗鱼
http://www.douyutv.com/
✓
凤凰视频
http://v.ifeng.com/
✓
风行网
http://www.fun.tv/
✓
iQIYI 爱奇艺
http://www.iqiyi.com/
✓
激动网
http://www.joy.cn/
✓
酷6网
http://www.ku6.com/
✓
酷狗音乐
http://www.kugou.com/
✓
酷我音乐
http://www.kuwo.cn/
✓
乐视网
http://www.le.com/
✓
荔枝FM
http://www.lizhi.fm/
✓
懒人听书
http://www.lrts.me/
✓
秒拍
http://www.miaopai.com/
✓
MioMio弹幕网
http://www.miomio.tv/
✓
MissEvan 猫耳FM
http://www.missevan.com/
✓
痞客邦
https://www.pixnet.net/
✓
PPTV聚力
http://www.pptv.com/
✓
齐鲁网
http://v.iqilu.com/
✓
QQ 腾讯视频
http://v.qq.com/
✓
企鹅直播
http://live.qq.com/
✓
Sina 新浪视频 微博秒拍视频
http://video.sina.com.cn/ http://video.weibo.com/
✓
Sohu 搜狐视频
http://tv.sohu.com/
✓
Tudou 土豆
http://www.tudou.com/
✓
阳光卫视
http://www.isuntv.com/
✓
Youku 优酷
http://www.youku.com/
✓
战旗TV
http://www.zhanqi.tv/lives
✓
央视网
http://www.cntv.cn/
✓
Naver 네이버
http://tvcast.naver.com/
✓
芒果TV
http://www.mgtv.com/
✓
火猫TV
http://www.huomao.com/
✓
阳光宽频网
http://www.365yg.com/
✓
西瓜视频
https://www.ixigua.com/
✓
新片场
https://www.xinpianchang.com/
✓
快手
https://www.kuaishou.com/
✓
✓
抖音
https://www.douyin.com/
✓
TikTok
https://www.tiktok.com/
✓
中国体育(TV)
http://v.zhibo.tv/ http://video.zhibo.tv/
✓
知乎
https://www.zhihu.com/
✓
安装方法
通过pip
安装
需要python
版本高于3.2
从github
下载
从地址 下载稳定版本,
解压之后进入目录
Homebrew
(Mac)
升级
pip3 install --upgrade you-get
或者下载最新的版本:
you-get https://github.com/soimort/you-get/archive/master.zip
使用
查看视频信息
$ you-get -i 'https://www.youtube.com/watch?v=jNQXAC9IVRw' site: YouTube title: Me at the zoo streams: [ DASH ] ____________________________________ - itag: 242 container: webm quality: 320x240 size: 0.6 MiB (618358 bytes) - itag: 395 container: mp4 quality: 320x240 size: 0.5 MiB (550743 bytes) - itag: 133 container: mp4 quality: 320x240 size: 0.5 MiB (498558 bytes) - itag: 278 container: webm quality: 192x144 size: 0.4 MiB (392857 bytes) - itag: 160 container: mp4 quality: 192x144 size: 0.4 MiB (370882 bytes) - itag: 394 container: mp4 quality: 192x144 size: 0.4 MiB (367261 bytes) [ DEFAULT ] _________________________________ - itag: 43 container: webm quality: medium size: 0.5 MiB (568748 bytes) - itag: 18 container: mp4 quality: small - itag: 36 container: 3gp quality: small - itag: 17 container: 3gp quality: small
下载视频
$ you-get 'https://www.youtube.com/watch?v=jNQXAC9IVRw' site: YouTube title: Me at the zoo stream: - itag: 242 container: webm quality: 320x240 size: 0.6 MiB (618358 bytes) Downloading Me at the zoo.webm ... 100% ( 0.6/ 0.6MB) ├██████████████████████████████████████████████████████████████████████████████┤[2/2] 2 MB/s Merging video parts... Merged into Me at the zoo.webm Saving Me at the zoo.en.srt ... Done.
或者下载视频其他的源
$ you-get --itag=18 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
使用代理
使用参数--http-proxy
/-x
$ you-get -x 127.0.0.1:8087 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
设置输出
使用--output-dir
/-o
设置输出路径,
--output-filename
/-O
设置输出文件名称
$ you-get -o ~/Videos -O zoo.webm 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
直接观看
使用--player
/-p
直接观看视频,例如:
mpv
或者vlc
$ you-get -p vlc 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
或者直接使用浏览器观看
$ you-get -p chromium 'https://www.youtube.com/watch?v=jNQXAC9IVRw'