Answers for "how to use requests to download image"

2

requests download image

response = requests.get("https://i.imgur.com/ExdKOOz.png")

file = open("sample_image.png", "wb")
file.write(response.content)
file.close()
Posted by: Guest on May-25-2020

Code answers related to "how to use requests to download image"

Python Answers by Framework

Browse Popular Code Answers by Language