python使用you-get下载网页视频

you-get介绍

you-get
安装you-get

pip install you-get

代码

import you_get
import os
import time

def getMp4(urlList):
    cmd_list = []
    for url in urlList:
        cmds = 'you-get' + " " + url
        cmd_list.append(cmds)
    for each in cmd_list:
        time.sleep(1)
        os.system(each)

urlList = []
urlList.append('https://v.qq.com/x/page/x0799fafgn2.html')
getMp4(urlList)

猜你喜欢

转载自blog.csdn.net/weixin_43169720/article/details/84954162