Answers for "how to download an image from a url in python"

13

python download image

import urllib.request

image_url = 'https://bit.ly/2XuVzB4' #the image on the web
save_name = 'my_image.jpg' #local name to be saved
urllib.request.urlretrieve(image_url, save_name)
Posted by: Guest on May-27-2020
1

download image from url python 3

import urllib.request
urllib.request.urlretrieve(url, filename)
Posted by: Guest on May-28-2020

Code answers related to "how to download an image from a url in python"

Python Answers by Framework

Browse Popular Code Answers by Language