摘要:
1、urllib python 内置的http的请求库 urllib.request #请求模块 www=urllib.request.urlopen(url,data,timeout) www.read().decode('utf-8') type(www)#响应类型 www.status#响应状 阅读全文
posted @ 2018-07-08 23:22
陈小维努力ing
阅读(317)
评论(0)
推荐(0)
摘要:
爬虫-->请求网站并提取数据的自动化程序 1、发送http请求requests(headers) 2、获取响应respones 3、解析内容 4、保存数据 ***检查网页源代码 request 请求方式 get post(请求参数不包含在url内,需要构造相关表单) 请求URL URL:统一资源定位 阅读全文
posted @ 2018-07-08 23:17
陈小维努力ing
阅读(498)
评论(0)
推荐(0)

浙公网安备 33010602011771号