import os
import time
baseUrl = "https://www.bilibili.com/video/BV1AZ4y1M7VQ/?p=" #这个链接换成自己所要下载的视频的链接基地址
# cmd = "you-get --playlist"
cmd = "you-get"
# 1~55 qisim #这里需要确定好自己所需要下载的视频有多少集
for i in range(1, 56):
currentCMD = cmd + " " + baseUrl + str(i)
print("start downloading: " + str(i) + " : " + currentCMD)
os.system(currentCMD)
print(str(i) + " has been downloaded successfully!")
time.sleep(1)
原文:https://www.cnblogs.com/ezhar/p/13881550.html