on master help sign in
[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>

commit7075fc1324b9e56439789bf1c4069d7339f788d9 authorMarkus Heiser <markus.heiser@darmarit.de> dateSat 3 Jul 2021, 20:12 (5 years ago) parent9afb845
1 file changed+7−1
searx/settings.yml+7−1
searx/settings.yml+7−1
@@ -1582,8 +1582,14 @@ engines:
15821582 search_url: https://search.brave.com/search?q={query}
15831583 url_xpath: //div[@class="snippet fdb"]/a/@href
15841584 title_xpath: //span[@class="snippet-title"]
1585− content_xpath: //div[@class="snippet-content"]
1585+ content_xpath: //p[1][@class="snippet-description"]
15861586 categories: general
1587+ about:
1588+ website: https://brave.com/search/
1589+ wikidata_id: Q22906900
1590+ use_official_api: false
1591+ require_api_key: false
1592+ results: HTML
15871593
15881594# Doku engine lets you access to any Doku wiki instance:
15891595# A public one or a private/corporate one.