Web Scraping : 가져온 웹 페이지에서 필요한 정보만 추출해내는 것
from urllib import request, parse
encoded = parse.urlencode({'name':'Smith', 'dept':20})
postdata = encoded.encode('ascii')
req = request.Request('http://localhost/crawling/add', data=postdata) # 요청
res = request.urlopen(req) # 응답
res.status # 200
text = res.read().decode('utf-8')
text # 'Smith / 20'