mirror of
https://github.com/searxng/searxng.git
synced 2026-01-16 19:45:31 +00:00
[feat] brave: show related query suggestions (#5614)
This commit is contained in:
@@ -338,6 +338,9 @@ def _parse_search(resp: SXNG_Response) -> EngineResults:
|
||||
item["iframe_src"] = iframe_src
|
||||
item["template"] = "videos.html"
|
||||
|
||||
for suggestion in eval_xpath_list(dom, "//a[contains(@class, 'related-query')]"):
|
||||
res.append(res.types.LegacyResult({'suggestion': extract_text(suggestion)}))
|
||||
|
||||
return res
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user