問題代碼:
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))