我有google脚本上传文件,我想通过python请求处理此脚本表单的上传文件,并返回从请求打印文件上传的id文件。
这是表单链接https://script.google.com/macros/s/AKfycbwoW69Cto6iPn2JTFUNomw4LhwtYaNPgN-mRItDNFm8BkOHStUL/exec
import requests
url = "https://script.google.com/macros/s/AKfycbwoW69Cto6iPn2JTFUNomw4LhwtYaNPgN-mRItDNFm8BkOHStUL/exec"
files = {'files[]': open('dl.rar', 'rb')}
response = requests.post(url, files=files)
print(response.text)