Home > other >  Python how to obtain the response value outside of the return value
Python how to obtain the response value outside of the return value

Time:09-26




 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 Python
So you need to traverse the dictionary and see what you need the corresponding keys
  • Related