爬虫经历
爬虫经历
今天在学爬虫的时候遇到了一个问题:
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?
其实解决的办法很简单,只需要
python -m pip install lxml
完美解决!
YES!
...
原创
2020-07-30 10:29:58 ·
118 阅读 ·
0 评论