SyntaxFix
Write A Post
Hire A Developer
Questions
For text files, you can use:
import requests url = 'https://WEBSITE.com' req = requests.get(url) path = "C:\\YOUR\\FILE.html" with open(path, 'wb') as f: f.write(req.content)