下载
pip install you-get
you-get支持的部分国内常用视频网站
you-get命令常用的选项以及参数
我喜欢的一个B站视频
首先查看一下它的几种清晰度
you-get -i https://www.bilibili.com/video/BV1oW411b7hx
那行结果:
site: Bilibili
title: 曾经我也想过一了百了--中岛美嘉
streams: # Available quality and codecs
[ DASH ] ____________________________________
- format: dash-flv720
container: mp4
quality: 高清 720P
size: 30.0 MiB (31442693 bytes)
# download-with: you-get --format=dash-flv720 [URL]
- format: dash-flv480
container: mp4
quality: 清晰 480P
size: 22.3 MiB (23409909 bytes)
# download-with: you-get --format=dash-flv480 [URL]
- format: dash-flv360
container: mp4
quality: 流畅 360P
size: 22.2 MiB (23305356 bytes)
# download-with: you-get --format=dash-flv360 [URL]
[ DEFAULT ] _________________________________
- format: flv720
container: flv
quality: 高清 720P
size: 33.9 MiB (35588245 bytes)
# download-with: you-get --format=flv720 [URL]
- format: flv480
container: flv
quality: 清晰 480P
size: 33.9 MiB (35571126 bytes)
# download-with: you-get --format=flv480 [URL]
- format: flv360
container: flv
quality: 流畅 360P
size: 25.6 MiB (26853252 bytes)
# download-with: you-get --format=flv360 [URL]
默认高清,下载一下试试
you-get --format==dash-flv720 https://www.bilibili.com/video/BV1oW411b7hx -o /home/wangwensong/Bilibili/ -O 我也想过一了百了.mp4
- --format==dash-flv720 是参看清晰度之后提供的下载格式,后面跟url就可以了
- -o 设置视频保存文件夹
- -O 设置文件名