From 58369e41d63cf905272e998d349175799cd5fbe6 Mon Sep 17 00:00:00 2001 From: Allen <64094914+allendema@users.noreply.github.com> Date: Thu, 4 Aug 2022 02:44:10 +0200 Subject: [PATCH] [wip] brave time range support --- searx/settings.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/searx/settings.yml b/searx/settings.yml index d98828ae1..3694c177a 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -1764,12 +1764,19 @@ engines: shortcut: brave engine: xpath paging: true + time_range_support: true 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 title_xpath: //span[@class="snippet-title"] content_xpath: //p[1][@class="snippet-description"] suggestion_xpath: //div[@class="text-gray h6"]/a + time_range_map: + day: 'pd' + week: 'pw' + month: 'pm' + year: 'py' categories: [general, web] about: website: https://brave.com/search/