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
|
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
|
||||||
|
|
Loading…
Reference in New Issue