request接口下载附件
import requests url = 'https://www.***.com/downloadFile' r = requests.get(url) fp = open("test.xls", "wb") fp.write(r.content) fp.close()
cookie略,根据实际情况传
本文来自博客园,作者:OTAKU_nicole,转载请注明原文链接:https://www.cnblogs.com/nicole-zhang/p/14845795.html