# windows 7 demo of http://jakjeon.icems.kr/main.do full download # session written to cmd.exe console # 20150728 $ chcp Active code page: 437 $ chcp 65001 Active code page: 65001 $ chcp Active code page: 65001 $ python Python 3.4.3 |Anaconda 2.3.0 (64-bit)| (default, Mar 6 2015, 12:06:10) [MSC v.1600 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> $ type urllibtimeout2.txt # http://stackoverflow.com/questions/31669040/i-get-timeouterror-winerror-10060-when-i-parsing-my-school-website # run chcp 65001 in cmd.exe window before running this script import requests url='http://jakjeon.icems.kr/main.do' r = requests.get(url) print(r.status_code) print(r.headers['content-type']) print(r.encoding) print(r.text) $ python urllibtimeout2.txt 200 text/html; charset=UTF-8 UTF-8
작전중학교 홈페이지에 오신것을 환영합니다

작전중학교 공지 팝업이 11건이 존재합니다.

Window 10의 엣지 브라우저를 사용하시는 분은 ‘자동으로 IE11전환모드를 선택’ 하여 주시기 바랍니다.