JorgeVanco's picture
feat: 50%
ff0eb39
raw
history blame contribute delete
232 Bytes
import shutil
import requests
def download_file(url, local_filename):
with requests.get(url, stream=True) as r:
with open(local_filename, "wb") as f:
shutil.copyfileobj(r.raw, f)
return local_filename