import urllib.request, urllib.parse, urllib.error
urllib.request.urlretrieve(
    'http://www.digimouth.com/news/media/2011/09/google-logo.jpg',
    'local-filename.jpg')
How to save an image locally using Python whose URL address I already know?