
datas = {
'account':'',
'captcha':'',
'clearText':clearText,
'isReturnValue':True,
'mobile':username,
'password':pwd,
'remember':True,
'requestUrl':'jcdz.jchl.com',
'sign':'',
'version':'v1.0.50.1834'
}
r = s.post(self.loginsite +'/v1/edf/user/login', headers = headers, data = datas, verify=False, allow_redirects=True)
print(r)
token = r.json()
uj5u.com熱心網友回復:
response是一個物件,在Python里就是字典所以你需要遍歷這個字典,看看你需要的內容對應的鍵值
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/78142.html
上一篇:python爬蟲新生問題
