![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python-爬虫
文章平均质量分 88
infoflow
聚精会神,持之以恒
展开
-
Request库的安装与使用
Request库的安装与使用安装pip install reqeustsRequests库的7个主要使用方法 requests.request() 构造一个请求,支撑以下各方法的基础方法 requests.get() 获取HTML网页的主要方法,对应HTTP的GET方法 requests.head() 获取HTML网页头信息的方法,对应HTTP的HEAD requests.post() 向HTML网原创 2017-11-22 00:24:15 · 3325 阅读 · 0 评论 -
BeautifulSoup入门
BeautifulSoup库入门BeautifulSoup库的理解BeautifulSoup库是解析、遍历、维护”标签树”的功能库示例代码:from bs4 import BeautifulSoup soup = BeautifulSoup("<html>data</html>","html.parser")#第一参数是html文档,第二个参数指定parser类型是html.parser soup2原创 2017-11-22 14:52:06 · 392 阅读 · 0 评论