I am trying to parse a response.text that I get when I make a request using the Python Requests library. For example:
response.text
request
def check_user(s
The manual suggests: if self.response.status_code == requests.codes.ok:
if self.response.status_code == requests.codes.ok:
If that doesn't work:
if json.loads(self.response.text)['result'] == 'success': whatever()