[refactor] engines: migrate to SXNG_Response.html() (#6718)

This commit is contained in:
Bnyro
2026-09-13 14:01:58 +02:00
parent 3169aafd28
commit 274b63b677
75 changed files with 102 additions and 178 deletions

View File

@@ -172,7 +172,6 @@ import re
import typing as t
import babel
import lxml.html
from searx import locales
from searx.enginelib import EngineCache
@@ -470,7 +469,7 @@ def response(resp: "SXNG_Response") -> EngineResults:
if resp.status_code == 303:
return res
doc = lxml.html.fromstring(resp.text)
doc = resp.html()
params = resp.search_params
if is_ddg_captcha(doc):