python3爬虫1--简单网页源代码获取

一、直接获取 .read()/requests.get() 1.1 输出Unicode格式html import urllib.request request=urllib.request.Request('http://www.baidu.com') response=urllib.request.urlopen(request) html=response.read() print(html)
相关文章
相关标签/搜索