马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
from bs4 import BeautifulSoup
>>> soup = BeautifulSoup(html_doc, 'html.parser')
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
soup = BeautifulSoup(html_doc, 'html.parser')
File "C:\Python38-32\lib\site-packages\bs4\__init__.py", line 153, in __init__
builder = builder_class()
File "C:\Python38-32\lib\site-packages\bs4\builder\_htmlparser.py", line 39, in __init__
return super(HTMLParserTreeBuilder, self).__init__(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'strict'
|