-
Notifications
You must be signed in to change notification settings - Fork 975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic doc example no longer works #576
Comments
Ran into the same issue. Hopefully, they update their documentation shortly. |
How do i get it to work? I installed lxml_html_clean but |
Okay, I figured it out. But only if you downgrade to version 0.9.0. I still couldnt figure out 0.10.0 because everything returns The readme says to do
but
|
As doc here: https://requests-html.kennethreitz.org/
Traceback (most recent call last):
File "E:\11-Projects\learning_requests_html.py", line 1, in
from requests_html import HTMLSession
File "E:\11-Projects.venv\Lib\site-packages\requests_html.py", line 14, in
from lxml.html.clean import Cleaner
File "E:\11-Projects.venv\Lib\site-packages\lxml\html\clean.py", line 18, in
raise ImportError(
ImportError: lxml.html.clean module is now a separate project lxml_html_clean.
Install lxml[html_clean] or lxml_html_clean directly.
I guess I should mention that it worked after installing lxml but thought I should say the docs are not correct.
The text was updated successfully, but these errors were encountered: