import requests url = "https://example-download-py.netlify.app/Downloaded_file.txt" request = requests.get(url) file = open("Downloaded_file.txt","w") file.write(request.text) file.close()