request接口下载附件

import requests

url = 'https://www.***.com/downloadFile'
r = requests.get(url)

fp = open("test.xls", "wb")
fp.write(r.content)
fp.close()

cookie略,根据实际情况传

posted @ 2021-06-03 16:36  OTAKU_nicole  阅读(199)  评论(0编辑  收藏  举报