How to get the raw content of a response in requests with Python?

After requests.get(), you can use r.content to extract the raw Byte-type content.

r = requests.get('https://yourweb.com', stream=True)
r.content

Leave a Comment