datas={
'account' : ' ',
'captcha' : ' ',
'clearText: clearText,
'isReturnValue: True,
'mobile' : the username,
"Password" : the PWD,
'remember: True,
'requestUrl' : 'jcdz.jchl.com',
'sign' : ' ',
'version' : 'v1.0.50.1834'
}
R=supachai panitchpakdi ost (self loginsite + '/v1/edf/user/login', headers=headers, data=https://bbs.csdn.net/topics/datas, verify=False, allow_redirects=True)
Print (r)
Token=r.j son ()
CodePudding user response:
The response is an object that is a dictionary in PythonSo you need to traverse the dictionary and see what you need the corresponding keys