download image from url python3 code example Example: download image from url python 3 import urllib.request urllib.request.urlretrieve(url, filename)