Python-下载视频

Python - 下载B站视频

# 1、安装模块
C:\Users\Administrator>pip install you-get
Collecting you-get
  Downloading you_get-0.4.1432-py3-none-any.whl (215 kB)
     |████████████████████████████████| 215 kB 17 kB/s
Installing collected packages: you-get
Successfully installed you-get-0.4.1432

# 2、下载 you-get "视频链接地址"
C:\Users\Administrator>you-get "https://www.bilibili.com/video/BV1XE411w7aT?from=search&seid=8580492291867094357"
site:                Bilibili
title:               用python下载视频,you-get
stream:
    - format:        flv
      container:     flv
      quality:       高清 1080P
      size:          49.6 MiB (52008009 bytes)
    # download-with: you-get --format=flv [URL]

Downloading 用python下载视频,you-get.flv ...
 100% ( 49.6/ 49.6MB) ├████████████████████████████████████████┤[1/1]  431 kB/s

Downloading 用python下载视频,you-get.cmt.xml ...

# 3、验证下载的文件,默认为以当前路径下
C:\Users\Administrator>
    
    

Python-下载视频

上一篇:如何将FLV格式视频转换成高清MP4格式方法


下一篇:Flv.js多窗口(或多宫格或矩阵)使用随记 [含GIF动图,流量患者慎入]