2.使用Beautiful Soup的准备工作

1.需要安装两个库:Beautiful Soup和lxml

2.Beautiful库的安装方法:pip install beautifusoup4

3.lxml库的安装方法:pip install lxml     (xpath也是用lxml库来跑通的)

 

posted @ 2026-11-09 19:54  abner_pan  阅读(7)  评论(0)    收藏  举报