Merge pull request #1144 from allendema/brave-pagination

[enh] Add pagination to Brave
This commit is contained in:
Alexandre Flament 2022-04-24 22:44:55 +02:00 committed by GitHub
commit d502e7d403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1667,8 +1667,9 @@ engines:
- name: brave - name: brave
shortcut: brave shortcut: brave
engine: xpath engine: xpath
paging: false paging: true
search_url: https://search.brave.com/search?q={query} first_page_num: 0
search_url: https://search.brave.com/search?q={query}&offset={pageno}&spellcheck=1
url_xpath: //div[@class="snippet fdb"]/a/@href url_xpath: //div[@class="snippet fdb"]/a/@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"]