bs4 BeautifulSoup
html = soup = BeautifulSoup(html)
()
(soup.title)
(soup.div)
(soup.span)
Traceback (most recent call last):
File "C:/Users/12554/Documents/Tencent Files/1255471801/FileRecv/project2021/PaChong/_re的beautifulsoup.py", line 22, in <module>
soup = BeautifulSoup(html,'lxml')
File "C:\Users\12554\AppData\Local\Programs\Python\Python37\lib\site-packages\bs4\__init__.py", line 248, in __init__
% ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
老师请问这个是因为没有安装的意思嘛