Python-下载视频

Python - 下载B站视频

# 1、安装模块
C:UsersAdministrator>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:UsersAdministrator>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:UsersAdministrator>
    
    

1587620915675

原文地址:https://www.cnblogs.com/chenfei2928/p/12760332.html