主要依赖you_get模块下载视频
#!/usr/bin python # -*- coding: utf-8 -*- # ============================================================================= # Mr.Wu """ @File :test.py @Date :2020/4/27 """ import sys import you_get def download(url, path): sys.argv = ['you-get', '-o', path, url] you_get.main() if __name__ == '__main__': # 视频网站的地址 for i in range(1000): url = 'https://www.bilibili.com/video/BV1QE41147hU?p=%s'%i # 视频输出的位置 path = '/opt/bilibili/buchong' download(url, path)