동행복권1 Web에서 획득한 데이터 한글깨짐 현상수정 #로또, #동행복권 회차 데이터 수집을 위해 메인페이지의 html 소스를 바로 Parsing할 생각이다. string sUrl = string.Format(@"https://dhlottery.co.kr/gameResult.do?method=byWin"); Encoding encoding = Encoding.UTF8; byte[] result = encoding.GetBytes(sUrl.ToString()); HttpWebRequest webReq = (HttpWebRequest)WebRequest.Create(sUrl); webReq.Method = "GET"; webReq.Timeout = 10000; //10sec using (HttpWebResponse webRes = (HttpWebResponse.. 2021. 4. 20. 이전 1 다음