[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.
This commit is contained in:
Allen 2021-08-03 21:15:34 +02:00 committed by GitHub
parent 36cf794cfa
commit ef246b7661
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -1377,6 +1377,24 @@ engines:
require_api_key: false
results: html
shortcut : petal
engine : xpath
paging : True
search_url : https://petalsearch.com/search?query={query}&pn={pageno}
title_xpath : //div[@class="card-title"]/span
url_xpath : //a[@class="card-main"]/@href
content_xpath : //div[@class="webpage-text"]
page_size : 12
categories : general
timeout : 4.0
disabled : True
about:
website: https://petalsearch.com
wikidata_id: #
use_official_api: false
require_api_key: false
results: HTML
- name : ask
shortcut : ask
engine : xpath