urllib copy from url python 3 code example
Example 1: python3 download file
import urllib.request
print('Beginning file download with urllib2...')
url = 'http://i3.ytimg.com/vi/J---aiyznGQ/mqdefault.jpg'
urllib.request.urlretrieve(url, '/Users/scott/Downloads/cat.jpg')
Example 2: urllib urlretrieve python 3
#In Python 3.x, the urlretrieve function is located in the urllib.request module:
from urllib.request import urlretrieve