问题代码:

res = requests.post(getXxxxList_url, headers=headers, data={})

 

对象网站:

  • angular4
  • apache

通过验证

(cookie,x-??-key)

payload: 空对象(实际登录在network里查看的)

{}

爬取结果:

Required request body is missing

 

解决方案:

import json
import requests

# ...略...

body = {}
res = requests.post(getXxxxList_url, headers=headers, data=json.dumps(body))

相关文章:

  • 2021-12-17
  • 2021-11-29
  • 2021-08-18
  • 2021-05-24
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-05
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
相关资源
相似解决方案