import urllib.request
web_urls="http://www.163.com"
response=urllib.request.urlopen(web_urls)
print(response.read().decode("gbk")) #查看网页编码。判断如何解码
【爬虫】爬取网易首页源代码
猜你喜欢
转载自blog.csdn.net/weixin_38052444/article/details/82662886
今日推荐
周排行