- BeautifulSoup
(1)百度含义:
(2)安装bs4;导入;创建
打开prompt输入pip install beautifulsoup4
导入:from bs4 import BeautifulSoup
创建:soup = BeautifulSoupaa(html,‘html.perser’)
(3)用法
bs库的遍历
BS实例分析
自己尝试
2.xpath
(1)含义:
(2)爬取丁香园-用户名和回复内容实例来源
3.re
(1)含义
(2)用法
正则表达式操作
(3)正则表达式操作
内容来源