#!/usr/bin/python3 # -*- coding: utf-8 -*- # Created by iFantastic on 2020/8/7
# 用于视频下载(B站等)
import sys from you_get import common as you_get #导入you-get库 def info(): """ 下载当前连接下1到10集视频 :return: """ directory = r'/opt/vue/24jieqi' for i in range(1,24): print(i) url_i = "https://www.bilibili.com/video/BV1YK411U7et?p=" + str(i) # sys.argv = ['you-get', '-o', directory, '--format','flv360',url_i] sys.argv = ['you-get', '-o', directory,url_i] you_get.main() info()
标签:视频,get,url,sys,directory,下载 From: https://www.cnblogs.com/y593216/p/17305679.html