short_notes_on_machine_learning icon indicating copy to clipboard operation
short_notes_on_machine_learning copied to clipboard

Do you need to install a parser library?

Open beamzer opened this issue 6 years ago • 0 comments

Thanks for the code on https://chrisalbon.com/python/web_scraping/monitor_a_website/ Got an error on first try, but was able to fix it by installing lxml

[]% ./check.py Traceback (most recent call last): File "./check.py", line 28, in soup = BeautifulSoup(response.text, "lxml") File "/usr/local/lib/python3.6/site-packages/bs4/init.py", line 228, in init % ",".join(features)) bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

[]% pip3 install lxml Collecting lxml Downloading https://files.pythonhosted.org/packages/68/30/affd16b77edf9537f5be051905f33527021e20d563d013e8c42c7fd01949/lxml-4.4.2-cp36-cp36m-manylinux1_x86_64.whl (5.8MB) 100% |████████████████████████████████| 5.8MB 184kB/s Installing collected packages: lxml Successfully installed lxml-4.4.2

beamzer avatar Jan 15 '20 22:01 beamzer