Answers for "py download image"

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
0

download image python

import requests
with open('00000001.jpg','wb') as f:
	f.write(requests.get('http://www.gunnerkrigg.com//comics/00000001.jpg').content)
Posted by: Guest on June-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language