How to download image using requests
You can either use the response.raw file object, or iterate over the response. To use the response.raw file-like object will not, by default, decode compressed responses (with GZIP or deflate). You can force it to decompress for you anyway by setting the decode_content attribute to True (requests sets it to False to control decoding itself). … Read more