qpython运行
原代码: soup = BeautifulSoup(r.text,'lxml')
报错:bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
改成: soup = BeautifulSoup(r.text,'html.parser')
ok
qpython运行
原代码: soup = BeautifulSoup(r.text,'lxml')
报错:bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
改成: soup = BeautifulSoup(r.text,'html.parser')
ok
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。