resource = urllib.request.urlopen(
    'http://www.digimouth.com/news/media/2011/09/google-logo.jpg')
output = open('file01.jpg', 'wb')
output.write(resource.read())
output.close()
How to save an image locally using Python whose URL address I already know?