Skip to content

Instantly share code, notes, and snippets.

def download(url, dest):
with urllib.request.urlopen(url) as response, open(dest, 'wb') as out_file:
shutil.copyfileobj(response, out_file)