python3 简单抓取网页

import urllib.request
resp=urllib.request.urlopen("http://fanyi.baidu.com/")
html=resp.read()
html = html.decode("utf-8")
print (html)
posted on 2017-08-19 07:34  vsmart  阅读(201)  评论(0)    收藏  举报