diff options
author | Allen <64094914+allendema@users.noreply.github.com> | 2022-08-04 02:44:10 +0200 |
---|---|---|
committer | allendema_searxng_pi <pi@raspberrypi.local> | 2022-08-04 04:47:25 +0200 |
commit | 58369e41d63cf905272e998d349175799cd5fbe6 (patch) | |
tree | 369b078ee6ba12e18b564a7d81d028a926c1a6db | |
parent | 7c9c112484ff091a7c11df1dbb645616b57d662f (diff) | |
download | searxng-58369e41d63cf905272e998d349175799cd5fbe6.tar.gz searxng-58369e41d63cf905272e998d349175799cd5fbe6.zip |
[wip] brave time range support
-rw-r--r-- | searx/settings.yml | 9 |
1 files changed, 8 insertions, 1 deletions
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/ |