mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[fix] engine brave: fix XPath of title element
Brave has mismatch between links and descriptions due to advertisement: Closes: https://github.com/searxng/searxng/issues/2020 Suggested by: @allendema & @AlyoshaVasilieva Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
2cf1425e8b
commit
4d9f83cb79
1 changed files with 1 additions and 1 deletions
|
@ -1849,7 +1849,7 @@ engines:
|
|||
time_range_url: "&tf={time_range_val}"
|
||||
search_url: https://search.brave.com/search?q={query}&offset={pageno}&spellcheck=1{time_range}
|
||||
url_xpath: //a[@class="result-header"]/@href
|
||||
title_xpath: //span[@class="snippet-title"]
|
||||
title_xpath: //*[contains(@class,"snippet fdb")]/*[@class="result-header"]/*[@class="snippet-title"]
|
||||
content_xpath: //p[1][@class="snippet-description"]
|
||||
suggestion_xpath: //div[@class="text-gray h6"]/a
|
||||
time_range_map:
|
||||
|
|
Loading…
Add table
Reference in a new issue