From 85e6b680ff215e1c9dad36469a0f473ba437d206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milien=20=28perso=29?= <4016501+unixfox@users.noreply.github.com> Date: Fri, 13 Oct 2023 08:18:12 +0000 Subject: [PATCH] fixing results parsing brave --- searx/engines/brave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/brave.py b/searx/engines/brave.py index 5e5579e74..1794cfc89 100644 --- a/searx/engines/brave.py +++ b/searx/engines/brave.py @@ -244,7 +244,7 @@ def _parse_search(resp): for result in eval_xpath_list(dom, xpath_results): url = eval_xpath_getindex(result, './/a[contains(@class, "h")]/@href', 0, default=None) - title_tag = eval_xpath_getindex(result, './/div[contains(@class, "title")]', 0, default=None) + title_tag = eval_xpath_getindex(result, './/div[contains(@class, "url")]', 0, default=None) if url is None or title_tag is None or not urlparse(url).netloc: # partial url likely means it's an ad continue