The requests.Response
class documentation has more details:
r.text
is the content of the response in Unicode, and r.content
is the content of the response in bytes.
It seems clear from the documentation is that r.content
You can also access the response body as bytes, for non-text requests:
>>> r.content
If you read further down the page it addresses for example an image file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With