10. URLLIB.REQUEST, RESPONSE 사용하기 소스(demorequest.py) import urllib.request urladdr = "http://www.example.com" oobj = urllib.request resobj = oobj.urlopen(urladdr) print("URL:%s"%resobj.geturl()) print("CODE:%s"%resobj.getcode()) print("INFO:%s"%resobj.info()) print("DATA:%s"%resobj.read().decode('utf-8')) 결과 URL:http://www.example.com CODE:200 INFO:Accept-Ranges: bytes Cache-Control: max-age=604..