Download large file in python with requests
Requests is a really nice library. I’d like to use it for downloading big files (>1GB). The problem is it’s not possible to keep whole file in memory; I need to read it in chunks. And this is a problem with the following code: import requests def DownloadFile(url) local_filename = url.split(“https://stackoverflow.com/”)[-1] r = requests.get(url) f … Read more