摘要: 简单网络爬虫案例 1 import urllib.request 2 3 # 请求百度地址 4 url = "http://www.baidu.com/" 5 # get请求 6 response = urllib.request.urlopen(url) 7 # 将文件获取内容转换成字符串 8 data = response.read().decode("utf-8") 9... 阅读全文
posted @ 2019-04-16 20:41 淡水无甜 阅读(113) 评论(0) 推荐(0) 编辑