Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58369e41 authored by Allen's avatar Allen Committed by allendema_searxng_pi
Browse files

[wip] brave time range support

parent 7c9c1124
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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/