解决BeautifulSoup库运行时报错问题

运行BeautifulSoup库时可能出现下面的错误,具体错误消息为:
To get rid of this warning, change this:

BeautifulSoup([your markup])

to this:

BeautifulSoup([your markup], "html.parser")

2、修改方法:
根据提示,将初始化,soup=BeautifulSoup(doc)修改为soup=BeautifulSoup(doc,"html.parser")

相关文章:

  • 2022-12-23
  • 2021-11-13
  • 2021-07-04
  • 2021-05-28
  • 2021-08-25
  • 2021-10-20
  • 2021-09-25
  • 2022-12-23
猜你喜欢
  • 2022-01-14
  • 2021-05-07
  • 2021-10-06
  • 2021-09-22
  • 2022-12-23
  • 2021-04-01
相关资源
相似解决方案