python 浏览器可以操作,通过python 无法下载

查看 52|回复 2
作者:zhangtiechui   
如何使用 python 调用 download 接口下载文件,
我发现每次请求都会修改 cookie 信息,我在postman 中修改了cookie后 http状态码为 200, 但是内容为空
url:
http://stats.customs.gov.cn/queryData/queryDataList?pageNum=1&codeLength=8&currentStartTime=202110&currentEndTime=202304&currentDateBySource=202304&selectTableState=1&orderType=CODE%20ASC%20DEFAULT&iEType=1&currencyType=rmb&year=2023&startMonth=4&endMonth=4&monthFlag=&unitFlag=false&unitFlag1=false&outerField1=CODE_TS&outerField2=ORIGIN_COUNTRY&outerField3=&outerField4=&outerValue1=&outerValue2=101&outerValue3=&outerValue4=

无法下载, 浏览器

lisongmei   

数据都加载不出来的哇
zhangtiechui
OP
  


lisongmei 发表于 2023-5-24 17:02
数据都加载不出来的哇

统计局的数据
http://stats.customs.gov.cn/
查询条件
您需要登录后才可以回帖 登录 | 立即注册

返回顶部