Created
January 10, 2022 13:45
-
-
Save alphazwest/561959a0d28e587c3bd0808f4b82bbaa to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
with requests.get('https://www.example.com/file.txt')as r: | |
with open('download.txt', 'wb')as file: | |
file.write(r.raw) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment