| 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 | |
| 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 | |