写爬虫注册登录页面时报错
import requests
import json
uil = 'https://www.dcguanwang.com/port/login/verifycodeZhengxin'
headers = {
'user-agent' :'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.55'
}
dete = {
"bd_vid": "7473610220310458349",
"mobile": "13041333388",
"temp": "sms_reg"
}
data = json.dumps(dete)
resp = requests.post(uil, headers = headers,dete = data)
print(resp.text)