From 9ed0bac87b1edaed3da31374679f3714269787ac Mon Sep 17 00:00:00 2001 From: alxia Date: Wed, 28 Feb 2018 22:45:10 -0500 Subject: [PATCH] UserWarning fix fixed UserWarning by passing default **bsargs to lxml --- requests_html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests_html.py b/requests_html.py index 7964625..82a72c2 100644 --- a/requests_html.py +++ b/requests_html.py @@ -117,7 +117,7 @@ class BaseParser: """`lxml `_ representation of the :class:`Element ` or :class:`HTML `. """ - return soup_parse(self.html) + return soup_parse(self.html, features='html.parser') @property def text(self) -> _Text: