What is the difference between ‘content’ and ‘text’

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.

Leave a Comment