- 论坛徽章:
- 1
|
谢谢dahe_1984!
还是少包。。。
>>> root_p = re.compile(r'<Root>(.*?)</Root>', re.IGNORECASE)
>>> soup=BeautifulSoup(lines,'html.parse')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\F\AppData\Local\Programs\Python\Python36\lib\site-packages\bs4\__init__.py", line 165, in __init__
% ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html.parse. Do you need to install a parser library?
>>> import lxml
>>> soup=BeautifulSoup(lines,'html.parse')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\F\AppData\Local\Programs\Python\Python36\lib\site-packages\bs4\__init__.py", line 165, in __init__
% ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html.parse. Do you need to install a parser library?
|
|