如何下载哔哩哔哩、爱奇艺、腾讯视频、优酷、斗鱼、TED、YouTube网页视频

 

 

这里使用you-get工具进行下载

github地址:https://github.com/soimort/you-get/

github项目文档:https://github.com/soimort/you-get/wiki/%E4%B8%AD%E6%96%87%E8%AF%B4%E6%98%8E#installation

 

1、安装python环境

访问 https://www.python.org/downloads/

 

 

 

 

点击下载 并安装即可

 

 

 

 

 

 2、安装FFmpeg 环境

浏览器访问:https://ffmpeg.zeranoe.com/builds/

 这个地址较慢,可以访问以下地址下载exe安装包

https://www.lanzous.com/i9s1hdi

下载完成后 打开cmd运行

1
ffmpeg -version  

 显示以下内容

1
2
3
4
5
6
7
8
ffmpeg version N-94813-g85386c36e3-ffmpeg-for-N_m3u8DL-CLI Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.2.0 (GCC)
libavutil      56. 35.100 / 56. 35.100
libavcodec     58. 56.101 / 58. 56.101
libavformat    58. 32.104 / 58. 32.104
libavfilter     7. 58.102 7. 58.102
libavresample   400 400
libswresample   36.100 36.100

 即为安装成功

 

3、安装you-get 工具

快捷键win+R ,输入cmd ,

 

 

运行命令

1
pip3 install you-get  

安装完成后显示

1
2
3
4
5
6
7
8
C:\Users\HHX>pip3 install you-get
Collecting you-get
  Downloading https://files.pythonhosted.org/packages/f5/7a/5199400077ac6ca7c9833e53532d3f75d265d8b3da67e555f0c4033ea003/you_get-0.4.1403-py3-none-any.whl (214kB)
     |████████████████████████████████| 215kB 2.9kB/s
Installing collected packages: you-get
Successfully installed you-get-0.4.1403
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

  

 运行命令

1
python -m pip install --upgrade pip  

显示以下内容

1
2
3
4
5
6
7
Collecting pip
  Downloading https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl (1.4MB)
     |████████████████████████████████| 1.4MB 52kB/s
Installing collected packages: pip
  Found existing installation: pip 19.2.3
    Uninstalling pip-19.2.3:
      Successfully uninstalled pip-19.2.3

  

 

开始

下载视频

1
you-get 视频链接

 

也可以使用

1
you-get -i 视频链接

  使用“-i”,可以先查看下载的画质选择,可以看到有不同的画质,

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[ DASH ] ____________________________________
   - format:        dash-flv720
     container:     mp4
     quality:       高清 720P
     size:          84.5 MiB (88620001 bytes)
   # download-with: you-get --format=dash-flv720 [URL]
 
   - format:        dash-flv480
     container:     mp4
     quality:       清晰 480P
     size:          76.0 MiB (79730773 bytes)
   # download-with: you-get --format=dash-flv480 [URL]
 
   - format:        dash-flv360
     container:     mp4
     quality:       流畅 360P
     size:          56.5 MiB (59276792 bytes)
   # download-with: you-get --format=dash-flv360 [URL]
 
   [ DEFAULT ] _________________________________
   - format:        flv720
     container:     flv
     quality:       高清 720P
     size:          112.9 MiB (118430668 bytes)
   # download-with: you-get --format=flv720 [URL]
 
   - format:        flv480
     container:     flv
     quality:       清晰 480P
     size:          100.6 MiB (105497054 bytes)
   # download-with: you-get --format=flv480 [URL]
 
   - format:        flv360
     container:     flv
     quality:       流畅 360P
     size:          66.6 MiB (69812960 bytes)
   # download-with: you-get --format=flv360 [URL]

接着可以根据  download-with 后面的命令对应下载不同画质的视频,把URL替换成视频链接即可  

(注:文件默认下载在当前打开cmd的文件目录下) 

更多命令使用可以查看GitHub文档地址 

 

支持网站

网站URL视频?图像?音频?
YouTube https://www.youtube.com/    
Twitter https://twitter.com/  
VK http://vk.com/    
Vine https://vine.co/    
Vimeo https://vimeo.com/    
Vidto http://vidto.me/    
Veoh http://www.veoh.com/    
Tumblr https://www.tumblr.com/
TED http://www.ted.com/    
SoundCloud https://soundcloud.com/    
Pinterest https://www.pinterest.com/    
MusicPlayOn http://en.musicplayon.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/    
JPopsuki TV http://www.jpopsuki.tv/    
Internet Archive https://archive.org/    
Instagram https://instagram.com/  
Heavy Music Archive http://www.heavy-music.ru    
Google+ https://plus.google.com/  
Freesound http://www.freesound.org/    
Flickr https://www.flickr.com/  
Facebook https://www.facebook.com/    
eHow http://www.ehow.com/    
Dailymotion http://www.dailymotion.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.tv/    
Baidu
百度贴吧
http://tieba.baidu.com/  
爆米花网 http://www.baomihua.com/    
bilibili
哔哩哔哩
http://www.bilibili.com/    
Dilidili http://www.dilidili.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.letv.com/    
荔枝FM http://www.lizhi.fm/    
秒拍 http://www.miaopai.com/    
MioMio弹幕网 http://www.miomio.tv/    
痞客邦 https://www.pixnet.net/    
PPTV聚力 http://www.pptv.com/    
齐鲁网 http://v.iqilu.com/    
QQ
腾讯视频
http://v.qq.com/    
阡陌视频 http://qianmo.com/    
Sina
新浪视频
微博秒拍视频
http://video.sina.com.cn/
http://video.weibo.com/
   
Sohu
搜狐视频
http://tv.sohu.com/    
天天动听 http://www.dongting.com/    
Tudou
土豆
http://www.tudou.com/    
虾米 http://www.xiami.com/    
阳光卫视 http://www.isuntv.com/    
音悦Tai http://www.yinyuetai.com/    
Youku
优酷
http://www.youku.com/    
战旗TV http://www.zhanqi.tv/lives    
央视网 http://www.cntv.cn/    

对于不在列表的网站,通用解析器将寻找并下载感兴趣之内容.

已知问题

如果 you-get 出现问题,不要惊慌. (是的,问题一直存在!)

看看是不是在 https://github.com/soimort/you-get/wiki/Known-Bugs里面, 搜索 开放Issue. 如果没人报告,开个新issue, 加上详细的命令行输出.

 

posted @   yvioo  阅读(2415)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示