import requests
url = "http://nadocoding.tistory.com"
headers ={"User-Agent":"Mozilla / 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit / 537.36 (Gecko와 같은 KHTML) Chrome / 86.0.4240.198 Safari / 537.36"}
res = requests.get(url,headers=headers)
res.raise_for_status()
with open("nadocoding.html","w",encoding="utf8") as f:
    f.write(res.text)