summaryrefslogtreecommitdiff
path: root/searx/engines/brave.py
diff options
context:
space:
mode:
authorÉmilien (perso) <4016501+unixfox@users.noreply.github.com>2023-10-13 08:18:12 +0000
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-10-13 11:47:30 +0200
commit4280318fc5278adb0adae587bd7b5e8958ec2af3 (patch)
tree0e65e462521ccac91616bf455946e57c6e1308ed /searx/engines/brave.py
parent7f59b6d62e6a7701b48063e9c903ca4acf26ba3d (diff)
downloadsearxng-4280318fc5278adb0adae587bd7b5e8958ec2af3.tar.gz
searxng-4280318fc5278adb0adae587bd7b5e8958ec2af3.zip
fixing results parsing brave
Diffstat (limited to 'searx/engines/brave.py')
-rw-r--r--searx/engines/brave.py2
1 files changed, 1 insertions, 1 deletions
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