bs4简介
基本概念
Beautiful Soup是一个可以从HTML或XML文件中提取数据的网页信息提取库
源码分析
- github下载源码
- 安装
- pip install lxml
- pip install bs4
bs4的使用
快速开始
html_doc = """
<html><head><title>The Dormouse's story</title></head>
<body>
<p class="title"><b>The Dormouse's story</b></p>
<p class="story">Once upon a time there were three little sisters; and their names were
<a href="http://example.com/elsie" class