Skip to content

Instantly share code, notes, and snippets.

@altendky
Created October 27, 2016 02:35
Show Gist options
  • Select an option

  • Save altendky/efac3a855e688a25bedb196e226998ca to your computer and use it in GitHub Desktop.

Select an option

Save altendky/efac3a855e688a25bedb196e226998ca to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "b.py", line 11, in <module>
soup = soupparser.parse(htmlfile, features='lxml.html.soupparser')
File "/home/altendky/venv.bs/lib/python3.5/site-packages/lxml/html/soupparser.py", line 47, in parse
root = _parse(file, beautifulsoup, makeelement, **bsargs)
File "/home/altendky/venv.bs/lib/python3.5/site-packages/lxml/html/soupparser.py", line 78, in _parse
tree = beautifulsoup(source, **bsargs)
File "/home/altendky/venv.bs/lib/python3.5/site-packages/bs4/__init__.py", line 165, in __init__
% ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml.html.soupparser. Do you need to install a parser library?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment