beautifulsoup 安装和作用 pip安装 pip install beautifulsoup4 beautifulsoup使用解析器有三种:lxml、html.parser、html5lib,除了lxml,另外两种都是自带的。 pip install lxml 作用 主要作用:在爬取过程中快速帮我们定位到元素并提取数据