on master help sign in
[enh] Add Petalsearch.com engine (xpath) (#2897)

* [enh] Add Petalsearch.com engine (xpath) Upstream example query: https://petalsearch.com/search?query=Felis%20lynx%20Linnaeus&sregion=de&pn=1 * Fix Petalsearch title_xpath Fixes the title_xpath from Petalsearch which got changed in the meantime.

commitef246b76616cc645a7d49528750301e35e02652b authorAllen <64094914+allendema@users.noreply.github.com> dateTue 3 Aug 2021, 21:15 (5 years ago) parent36cf794
1 file changed+18
searx/settings.yml+18
searx/settings.yml+18
@@ -1377,6 +1377,24 @@ engines:
13771377 require_api_key: false
13781378 results: html
13791379
1380+ shortcut : petal
1381+ engine : xpath
1382+ paging : True
1383+ search_url : https://petalsearch.com/search?query={query}&pn={pageno}
1384+ title_xpath : //div[@class="card-title"]/span
1385+ url_xpath : //a[@class="card-main"]/@href
1386+ content_xpath : //div[@class="webpage-text"]
1387+ page_size : 12
1388+ categories : general
1389+ timeout : 4.0
1390+ disabled : True
1391+ about:
1392+ website: https://petalsearch.com
1393+ wikidata_id: #
1394+ use_official_api: false
1395+ require_api_key: false
1396+ results: HTML
1397+
13801398 - name : ask
13811399 shortcut : ask
13821400 engine : xpath