From f09e8abd764e76704192f9b4d799cd378cf67ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Tiek=C3=B6tter?= Date: Sun, 29 May 2022 19:59:26 +0200 Subject: [PATCH 1/2] [engine] petal search Add Petal Search to SearXNG via XPath --- searx/settings.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/searx/settings.yml b/searx/settings.yml index ee0735fef..e77c5a962 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -1701,6 +1701,25 @@ engines: require_api_key: false results: HTML + - name: petalsearch + shortcut: pts + engine: xpath + paging: true + search_url: https://petalsearch.com/search?query={query}&pn={pageno} + results_xpath: //div[@class="webpage-content"]/div[@class="title-cont"]/a + url_xpath: ./@href + title_xpath: . + content_xpath: ../../div[@class="webpage-text"] + suggestion_xpath: //div[@class="related-search-items"]/a + first_page_num: 1 + disabled: true + about: + website: https://petalsearch.com/ + wikidata_id: Q104399280 + use_official_api: false + require_api_key: false + results: HTML + # Doku engine lets you access to any Doku wiki instance: # A public one or a privete/corporate one. # - name: ubuntuwiki From 167f635924e8d994aa68e6481213760e4d16ae98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Tiek=C3=B6tter?= Date: Sun, 29 May 2022 22:31:29 +0200 Subject: [PATCH 2/2] [engine] petal search news Add Petal Search News to SearXNG via XPath --- searx/settings.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/searx/settings.yml b/searx/settings.yml index e77c5a962..ae1291e08 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -1720,6 +1720,26 @@ engines: require_api_key: false results: HTML + - name: petalsearch news + shortcut: ptsn + categories: news + engine: xpath + paging: true + search_url: https://petalsearch.com/search?channel=news&query={query}&pn={pageno} + results_xpath: //div[@class="news-container"]/div/div/div/a + url_xpath: ./@href + title_xpath: ./div + content_xpath: ../div[@class="news-text"] + thumbnail_xpath: ../../../../img/@src + first_page_num: 1 + disabled: true + about: + website: https://petalsearch.com/ + wikidata_id: Q104399280 + use_official_api: false + require_api_key: false + results: HTML + # Doku engine lets you access to any Doku wiki instance: # A public one or a privete/corporate one. # - name: ubuntuwiki