import requests, bs4
res= requests.get(r'http://www.baidu.com')
nostarchsoup=bs4.BeautifulStoneSoup(res.text)
type(nostarchsoup)
结果显示:
UserWarning: The BeautifulStoneSoup class is deprecated. Instead of using it, pass features="xml" into the BeautifulSoup constructor.
'The BeautifulStoneSoup class is deprecated. Instead of using '
这是怎么回事呀?