[Fix] Add suggestions + Fix xpaths (#3082)

* [mod] Add Suggestion to Petalsearch

* [Fix] Changed xpath for Petalsearch
This commit is contained in:
Allen 2022-01-07 21:49:08 +01:00 committed by GitHub
parent 8cde08ded2
commit 0c2165324d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1450,10 +1450,10 @@ engines:
engine : xpath
paging : True
search_url : https://petalsearch.com/search?query={query}&pn={pageno}
results_xpath : //div[@class="container"]/div[@class="container"]
title_xpath : .//a[@class="title"]
url_xpath : .//a[@class="title"]/@href
content_xpath : .//div[@class="webpage-text"]
title_xpath : //span[@class="title-name"]
url_xpath : //div[@class="card-source"]/text()
content_xpath : //span[@class="desc-cont"]
suggestion_xpath : //*[@class="rs-text"]/*[contains(class, rs-text)]
page_size : 12
categories : general
timeout : 4.0