mirror of
https://github.com/searxng/searxng.git
synced 2026-09-23 06:36:12 +00:00
[refactor] engines: migrate to SXNG_Response.html() (#6718)
This commit is contained in:
@@ -135,7 +135,7 @@ def _parse_json_results(dom: html.HtmlElement) -> dict[str, t.Any]:
|
||||
def response(resp: "SXNG_Response") -> EngineResults:
|
||||
catch_bad_response(resp)
|
||||
results = EngineResults()
|
||||
dom = html.fromstring(resp.text)
|
||||
dom = resp.html()
|
||||
|
||||
match search_type:
|
||||
case "web":
|
||||
|
||||
Reference in New Issue
Block a user