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