最近审批太多,需要手动上传,写了个爬虫进行自动上传审批,报错405,原来的代码是这样的
# 请求头
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36',
'Cookie': Cookie,
'Referer': 'http://132.xxx.xx.xx:xxxx/xxxx.html?time={0}'.format