diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2023-08-06 19:35:56 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-08-08 16:21:45 +0200 |
commit | 460bbe5b8114cb5782a6f3e8cb644bbd29829b64 (patch) | |
tree | 36a028d350090c3cb7c231a4ebc385e26771b4fc /searx/settings.yml | |
parent | d151497db3ad33efda95b2fc7c1dd0ecf64304b6 (diff) | |
download | searxng-460bbe5b8114cb5782a6f3e8cb644bbd29829b64.tar.gz searxng-460bbe5b8114cb5782a6f3e8cb644bbd29829b64.zip |
[mod] implement brave (WEB) engine to replace XPath configuration
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/settings.yml')
-rw-r--r-- | searx/settings.yml | 48 |
1 files changed, 16 insertions, 32 deletions
diff --git a/searx/settings.yml b/searx/settings.yml index 87bf381eb..04ec3e466 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -1816,50 +1816,34 @@ engines: timeout: 9.0 - name: brave - shortcut: brave - engine: xpath - paging: true + engine: brave + shortcut: br time_range_support: true - first_page_num: 0 - 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' + paging: true categories: [general, web] - disabled: true - headers: - Accept-Encoding: gzip, deflate - about: - website: https://brave.com/search/ - wikidata_id: Q107355971 - use_official_api: false - require_api_key: false - results: HTML + brave_category: search + # brave_spellcheck: true - name: brave.images - shortcut: braveimg engine: brave - categories: images - disabled: true + network: brave + shortcut: brimg + categories: [images, web] + brave_category: images - name: brave.videos - shortcut: bravevid engine: brave - categories: videos - disabled: true + network: brave + shortcut: brvid + categories: [videos, web] + brave_category: videos - name: brave.news - shortcut: bravenews engine: brave + network: brave + shortcut: brnews categories: news - disabled: true + brave_category: news - name: petalsearch shortcut: pts |