python:爬取网络小说,看这一篇就够了
qq_44641765:
c:\Users\Hasee\Desktop\python_work\实用篇\爬小说\story.py:15: DeprecationWarning: The BeautifulStoneSoup class is deprecated. Instead of using it, pass features="xml" into the BeautifulSoup constructor.
soup = BeautifulStoneSoup(response.text, 'html.parser')
Traceback (most recent call last):
File "c:\Users\Hasee\Desktop\python_work\实用篇\爬小说\story.py", line 15, in
soup = BeautifulStoneSoup(response.text, 'html.parser')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "e:\SoftWARE\Python\Python311\Lib\site-packages\bs4\__init__.py", line 822, in __init__
super(BeautifulStoneSoup, self).__init__(*args, **kwargs)
TypeError: BeautifulSoup.__init__() got multiple values for argument 'features' 这个告警是什么原因呢
|