Download files with some Python code

Posted on Wed 18 January 2017 in python • 1 min read

If you want to save some files accessible over HTTP(S) to your computer and have to generate their paths with more than bash, saving with Python can be done as following

# With python3
from urllib.request import urlretrieve
urlretrieve(url, local_filename)