Python3网络爬虫数据采集
第 1 章 初见网络爬虫 .......................................................................................................................2
1.1 网络连接 .....................................................................................................................................2
1.2 BeautifulSoup 简介 .....................................................................................................................4
1.2.1 安装 BeautifulSoup ........................................................................................................5
1.2.2 运行 BeautifulSoup ........................................................................................................7
1.2.3 可靠的网络连接 ............................................................................................................8
第 2 章 复杂 HTML 解析 ...............................................................................................................11
2.1 不是一直都要用锤子 ...............................................................................................................11
2.2 再端一碗 BeautifulSoup ...........................................................................................................12
2.2.1 BeautifulSoup 的 find() 和 findAll() ......................................................................13
2.2.2 其他 BeautifulSoup 对象 .............................................................................................15
2.2.3 导航树 ..........................................................................................................................16
2.3 正则表达式 ...............................................................................................................................19
2.4 正则表达式和 BeautifulSoup ...................................................................................................23
2.5 获取属性 ...................................................................................................................................24
2.6 Lambda 表达式 .........................................................................................................................24
2.7 超越 BeautifulSoup ...................................................................................................................25
部分文件列表
文件名
大小
Python3网络爬虫数据采集.pdf
9M