Created
February 5, 2020 07:12
-
-
Save iHTCboy/1718fd3f8b4d33e7dd1c81d414cf769e to your computer and use it in GitHub Desktop.
Python download file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
url='https://ihtcboy.com/htc.pdf' | |
r = requests.get(url, stream=True) | |
with open('C:/Users/HTC/myfile.pdf', 'wb') as f: | |
f.write(r.content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment