← How-To Guides How-To How to download a file with requests Use requests.get(url) and write response.content to a file. Use streaming for large files. Download content is bytes. r = requests.get(url) with open('file.bin', 'wb') as f: f.write(r.content)