
开篇寄语
伯衡君此前分享过使用python编程语言,即可下载YouTube视频的库,也分享过几款可以下载视频的下载器,而这次分享的you-get功能似乎更加强大,不仅能下载视频,还能下载音频,图片等等,具体如何实现呢?本篇伯衡君就亲自演示一番,体验一下它的强大之处。
前情提要
- 《曾经封禁的下载神器Youtube-dl又从GitHub重出江湖了,快来使用》
- 《用python两行代码下载YouTube视频》
- 《发现一款下载器Persepolis,支持Windows,MacOS,Linux系统使用》
- 《迅雷之类下载软件可以卸载了,满速下载软件xdown,支持百度云/磁力/种》
官方网址
项目地址
支持下载网站列表
| Site | URL | Videos? | Images? | Audios? |
|---|---|---|---|---|
| YouTube | https://www.youtube.com/ | ✓ | ||
| 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/ | ✓ | ||
| 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/ | ✓ | ||
| 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/ | ✓ | ||
| 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.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.xiami.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/ | ✓ |
需要环境
- Python 3.2 or above
- FFmpeg 1.0 or above
- RTMPDump(可选)
搭建环境
伯衡君这里就以“Windows”系统为例了,其他系统大家可以自行搭建,打开python官方网站:
安装就不用说了吧,非常简单,下一步,下一步的事。
安装完成后,在键盘按下“win”+“R”调出运行窗口,然后输入“cmd”调出命令运行窗口,在该窗口输入“python”,如果出现版本信息就证明安装成功了,如下图所示。

接下来输入“exit()”(没有双引号)退出python编辑状态,返回到上层后,输入下方代码:
pip3 install you-get
如下图所示,然后点击回车,等待安装完即可。

随后,安装FFmpeg,直接在cmd里面输入以下代码:
pip install ffmpeg
按下回车后,环境的搭建基本就完成了,如下图所示。

随后,我们想要在哪个文件夹下载视频,图片或者音频,伯衡君这里以桌面为例,在桌面,按住“Shift”,然后再按右键,在弹出的选项框中,选择“在这里开启powershell视窗”。

在弹出的命令提示框中输入“cmd”,回车,如下图所示。

接下来就是最重要的环节了,想要下载什么,伯衡君这里就以SoundCloud为例,下载一个歌曲mp3,打开soundcloud的官网,任意选择一个音乐,比如这个音乐陈一发儿的《童话镇》地址是:https://soundcloud.com/h-n-t-phong/1qxt49zmkm0k
只需要在命令提示框中输入以下代码:
you-get "https://soundcloud.com/h-n-t-phong/1qxt49zmkm0k"
按下回车后,就可以稍后等一会儿,即可看到下载成功了,速度快得令人发指,如下图所示。

还有更多命令,强大的功能,请到该官网或者项目查看即可,这个项目可以批量下载视频,音频,图片之类的,总之很强大就是了。
- 我的微信
- 微信扫一扫加好友
-
- 我的微信公众号
- 扫描关注公众号
-





