Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
download with requests
import shutil
import requests
def download(url, dst):
response = requests.get(url, stream=True)
with open(str(dst), 'wb') as out_file:
shutil.copyfileobj(response.raw, out_file)
del response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment