We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c813436 + 4df835a commit 43a45a5Copy full SHA for 43a45a5
scraper/src/strategies/abstract_strategy.py
@@ -39,9 +39,8 @@ def get_dom(response):
39
try:
40
body = response.body.decode(response.encoding)
41
result = lxml.html.fromstring(body)
42
- except (UnicodeError, ValueError):
+ except (UnicodeError, ValueError, lxml.etree.ParserError):
43
result = lxml.html.fromstring(response.body)
44
-
45
return result
46
47
def get_strip_chars(self, level, selectors):
0 commit comments