Getting with Python http requests instead of INT

Getting with Python http requests instead of INT

r = requests.post(https://www.9kw.eu/index.cgi, data = udajepost)

Here, r is the whole response object which has many attributes. I guess, you only need r.text. So, you can just use:

print(r.text) 

Youre looking for the response of the request:

print(r.text)

In this way youll have the plain text response.

Getting with Python http requests instead of INT

get json output by:

r.json()

and response_code by:

r.status_code

Leave a Reply

Your email address will not be published. Required fields are marked *