📜  Dateien mit modul requests herunterladen python Code Example

📅  最后修改于: 2022-03-11 14:45:05.890000             🧑  作者: Mango

代码示例1
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()