summaryrefslogtreecommitdiff
path: root/searx/settings.yml
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-07-03 20:12:47 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-07-03 20:57:55 +0200
commit9d97b2e85418a161139e91ebf5b8b9710a4f3196 (patch)
tree2852c3a3ba145fe5283f82a08ac00b87f61f94a6 /searx/settings.yml
parente0365d987beaaea5b1e96fca0eba6a7f9e65c4b3 (diff)
downloadsearxng-9d97b2e85418a161139e91ebf5b8b9710a4f3196.tar.gz
searxng-9d97b2e85418a161139e91ebf5b8b9710a4f3196.zip
[fix] brave engine: shows descriptions with their correct URLs
BTW add about section to the YAML configuration It now shows descriptions with their correct URLs when there are videos in the search results, pulling content_xpath from snippet-description instead of snippet-content. Suggested-by: @eagle-dogtooth https://github.com/searx/searx/issues/2857#issuecomment-869119968 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/settings.yml')
-rw-r--r--searx/settings.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/searx/settings.yml b/searx/settings.yml
index 976d81678..c7231796d 100644
--- a/searx/settings.yml
+++ b/searx/settings.yml
@@ -1510,8 +1510,14 @@ engines:
search_url: https://search.brave.com/search?q={query}
url_xpath: //div[@class="snippet fdb"]/a/@href
title_xpath: //span[@class="snippet-title"]
- content_xpath: //div[@class="snippet-content"]
+ content_xpath: //p[1][@class="snippet-description"]
categories: general
+ about:
+ website: https://brave.com/search/
+ wikidata_id: Q22906900
+ use_official_api: false
+ require_api_key: false
+ results: HTML
# Doku engine lets you access to any Doku wiki instance:
# A public one or a privete/corporate one.