今天为大家推荐的工具是you-get,是一款基于Python3的网络爬虫,用来爬取视频。
想必在这个网络横行,影视作品层出不穷的时代,大家在观看视频的时候都会有想把喜欢的视频保存下来的想法吧。
you-get就是一款非常好用的工具,而且对于爬虫学习者来说,也是不错的学习资源。
废话不多说了,先来演示一下如何安装使用you-get吧。
PS:首先,请确保您的电脑中已经安装好了Python3,且pip可用,并且你也拥有一定的编程基础。比如,会使用命令行。
在cmd中使用pip安装即可。
pip install you-get
接下来演示使用you-get下载视频,目标视频链接为:
https://www.bilibili.com/video/av53665761?from=search&seid=314798656115187804
别问我为什么选择这个视频,因为这个视频是我录制并上传的。
在cmd中使用命令行:
I:\>you-get https://www.bilibili.com/video/av53665761?from=search&seid=314798656115187804 -o .
运行效果如下:
接下来是下载到本地的文件。这说明视频已经被下载到本地了。xml文件是弹幕文件。
-i URL
,查看视频所有的清晰度,另外you-get
打印信息中会提示如何下载不同清晰度的-视频,默认下载最高清晰度的视频;-o dir
, 指定下载视频所在的位置;-O filename
, 指定下载后,该视频的文件名;you-get
在执行过程中分为抽取信息和下载内容两部分;-f
, 覆盖已存在的文件;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/ | ✓ | ||
Vidto | http://vidto.me/ | ✓ | ||
Videomega | http://videomega.tv/ | ✓ | ||
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/ | ✓ | |||
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/ | ✓ | ||
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/ | ✓ | ||
Google+ | https://plus.google.com/ | ✓ | ✓ | |
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.tv/ | ✓ | ||
Baidu百度贴吧 | http://tieba.baidu.com/ | ✓ | ✓ | |
爆米花网 | http://www.baomihua.com/ | ✓ | ||
bilibili哔哩哔哩 | http://www.bilibili.com/ | ✓ | ||
豆瓣 | http://www.douban.com/ | ✓ | ✓ | |
斗鱼 | http://www.douyutv.com/ | ✓ | ||
Panda 熊猫 | http://www.panda.tv/ | ✓ | ||
凤凰视频 | 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/ | ✓ | ||
痞客邦 | 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/ | ✓ | ||
音悦Tai | http://www.yinyuetai.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.kuaishou.com/ | ✓ | ✓ | |
抖音 | https://www.douyin.com/ | ✓ | ||
TikTok | https://www.tiktok.com/ | ✓ | ||
中国体育(TV) | http://v.zhibo.tv/ http://video.zhibo.tv/ | ✓ | ||
知乎 | https://www.zhihu.com/ | ✓ |
如果你对you-get的源码感兴趣,可以访问github:
https://github.com/soimort/you-get
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有