I got a problem when I am using python to save an image from url either by urllib2 request or urllib.urlretrieve. That is the url of the image is valid. I could download it
Python3
import urllib.request print('Beginning file download with urllib2...') url = 'https://akm-img-a-in.tosshub.com/sites/btmt/images/stories/modi_instagram_660_020320092717.jpg' urllib.request.urlretrieve(url, 'modiji.jpg')
Output result