1import urllib.request
2
3image_url = 'https://bit.ly/2XuVzB4' #the image on the web
4save_name = 'my_image.jpg' #local name to be saved
5urllib.request.urlretrieve(image_url, save_name)
1import urllib.request
2imgURL = "http://site.meishij.net/r/58/25/3568808/a3568808_142682562777944.jpg"
3
4urllib.request.urlretrieve(imgURL, "D:/abc/image/local-filename.jpg")
5
1import requests
2with open('00000001.jpg','wb') as f:
3 f.write(requests.get('http://www.gunnerkrigg.com//comics/00000001.jpg').content)
4