import requests
import urllib3; urllib3.disable_warnings()
H={'User-Agent':'Mozilla/5.0'}
cands={
 '한국원자력환경공단':'https://www.korad.or.kr/',
 '한국의료분쟁조정중재원':'https://www.k-medi.or.kr/',
 '한국의약품안전관리원':'https://www.drugsafe.or.kr/',
 '한국인터넷진흥원':'https://www.kisa.or.kr/',
 '한국임업진흥원':'https://www.kofpi.or.kr/',
 '한국자산관리공사':'https://www.kamco.or.kr/',
 '한국잡월드':'https://www.koreajobworld.or.kr/',
 '한국장기조직기증원':'https://www.koda1458.kr/',
 '한국장애인개발원':'https://www.koddi.or.kr/',
 '한국장애인고용공단':'https://www.kead.or.kr/',
 '한국장학재단':'https://www.kosaf.go.kr/',
 '한국재정정보원':'https://www.fis.kr/',
 '한국저작권보호원':'https://www.kcopa.or.kr/',
}
for nm,u in cands.items():
    try:
        r=requests.get(u,headers=H,timeout=15,verify=False,allow_redirects=True)
        title=''
        import re
        m=re.search(r'<title>(.*?)</title>',r.text,re.S|re.I)
        if m: title=m.group(1).strip()[:40]
        print(f'{r.status_code} {nm:14} -> {r.url[:45]:45} | {title}')
    except Exception as e:
        print(f'ERR {nm:14} {u} :: {str(e)[:40]}')
