摘要: 1 import requests 2 3 #实例引入 4 # response = requests.get('http://www.baidu.com') 5 # print(type(response)) 6 # print(response.status_code) 7 # print(type(response.text)) 8 # print(res... 阅读全文
posted @ 2018-10-26 11:35 X18301096 阅读(278) 评论(0) 推荐(0) 编辑
摘要: Python的内置HTTP请求库 urllib.request 请求模块 urllib.error 异常处理模块 urllib.parse url解析模块 urllib.robotparse robots.txt解析模块 阅读全文
posted @ 2018-10-26 09:33 X18301096 阅读(299) 评论(0) 推荐(0) 编辑