mirror of https://github.com/searx/searx
[Fix] Add suggestions + Fix xpaths (#3082)
* [mod] Add Suggestion to Petalsearch * [Fix] Changed xpath for Petalsearch
This commit is contained in:
parent
8cde08ded2
commit
0c2165324d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue