From 0c2165324d9c4234a35fe3dcdbab1530afbca117 Mon Sep 17 00:00:00 2001 From: Allen <64094914+allendema@users.noreply.github.com> Date: Fri, 7 Jan 2022 21:49:08 +0100 Subject: [PATCH] [Fix] Add suggestions + Fix xpaths (#3082) * [mod] Add Suggestion to Petalsearch * [Fix] Changed xpath for Petalsearch --- searx/settings.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/searx/settings.yml b/searx/settings.yml index 4eaeae1d..d3b89e34 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -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