# 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ì „í™˜ëª¨ë“œë¥¼ ì„ íƒâ€™ 하여 주시기 ë°”ëžë‹ˆë‹¤.