mirror of
https://github.com/searxng/searxng
synced 2024-11-03 09:40:20 +00:00
[wip] brave time range support
This commit is contained in:
parent
7c9c112484
commit
58369e41d6
@ -1764,12 +1764,19 @@ engines:
|
|||||||
shortcut: brave
|
shortcut: brave
|
||||||
engine: xpath
|
engine: xpath
|
||||||
paging: true
|
paging: true
|
||||||
|
time_range_support: true
|
||||||
first_page_num: 0
|
first_page_num: 0
|
||||||
search_url: https://search.brave.com/search?q={query}&offset={pageno}&spellcheck=1
|
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
|
url_xpath: //a[@class="result-header"]/@href
|
||||||
title_xpath: //span[@class="snippet-title"]
|
title_xpath: //span[@class="snippet-title"]
|
||||||
content_xpath: //p[1][@class="snippet-description"]
|
content_xpath: //p[1][@class="snippet-description"]
|
||||||
suggestion_xpath: //div[@class="text-gray h6"]/a
|
suggestion_xpath: //div[@class="text-gray h6"]/a
|
||||||
|
time_range_map:
|
||||||
|
day: 'pd'
|
||||||
|
week: 'pw'
|
||||||
|
month: 'pm'
|
||||||
|
year: 'py'
|
||||||
categories: [general, web]
|
categories: [general, web]
|
||||||
about:
|
about:
|
||||||
website: https://brave.com/search/
|
website: https://brave.com/search/
|
||||||
|
Loading…
Reference in New Issue
Block a user