Answers for "python3 download file"

0

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')
Posted by: Guest on March-16-2020

Python Answers by Framework

Browse Popular Code Answers by Language