8、爬虫-beatifulsoup-bs4

beatifulsoup的概念:Beautiful Soup就是Python的一个HTML或XML的解析库,可以用它方便地提取页面的数据。 1、安装bs4:pip install bs4 2、使用:from bs4 import BeautifulSoup 3、创建对象:BeautifulSoup(
posted @ 2024-07-01 22:24  little小新  阅读(1)  评论(0编辑  收藏  举报