Download file from web in Python 3 - Stack Overflow
https://stackoverflow.com/questions/7243750/download-file-from-web-in-python-3
Web# Download the file from `url` and save it locally under `file_name`: urllib.request.urlretrieve(url, file_name) import urllib.request ... # Download the file from `url`, save it in a temporary directory and get the # path to it (e.g. '/tmp/tmpb48zma.txt') in the `file_name` variable: file_name, headers = urllib.request.urlretrieve(url)
DA: 64 PA: 70 MOZ Rank: 58