使用curl的python系统

问题描述 投票:0回答:1

我有一个使用curl下载一长串网址的脚本;

但是某些网址的curl 显示错误,有人可以帮我修复这个错误吗

这是一个简单的网址

from os import system

test = {
        "name": "Python Sets(1)",
        "url": "https://dl.codeyad.com/videos/Courses/00b22ad1-7db1-4bf7-9125-075b7bdf2ccf/Episodes/4783dc10-34dd-4984-bd9d-ca1709d0924d/25_PythonSets(1).mp4"
      }

te = 'curl --output ' + test["name"].replace(' ','_').replace('(','_').replace(')','_') + '.mp4 ' + test['url']

system(te)

输出是语法错误(

我尝试将 ( 替换为 _ 来修复错误

python curl
1个回答
-1
投票

请在聊天中提供您想要的输入和输出,我们将为您提供优化的解决方案。 谢谢!.

© www.soinside.com 2019 - 2024. All rights reserved.