Ошибка при попытке прочитать html с помощью BeautifulSoup - PullRequest
0 голосов
/ 05 мая 2020

Я пытаюсь прочитать html, используя BeautfulSoup

soup = BeautifulSoup(html)

, но выдает ошибку

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/sww/sand/lib64/python2.7/bs4/__init__.py", line 156, in __init__
    builder = builder_class()
  File "/sww/sand/lib64/python2.7/bs4/builder/_lxml.py", line 45, in __init__
    parser = parser(target=self, strip_cdata=False)
TypeError: 'strip_cdata' is an invalid keyword argument for this function
...