summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAhmad Alkadri <ahmad.alkadri@outlook.com>2023-02-12 23:49:47 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2023-02-14 18:43:55 +0100
commitf6af59899baf536791c30f18da9cc45f0afeb99d (patch)
treef7a3f4dbd683fcc5007066ab68f066324cb1de0b /searx
parent295c87a926c3deb1e438234550a9d8fbbaad17fa (diff)
downloadsearxng-f6af59899baf536791c30f18da9cc45f0afeb99d.tar.gz
searxng-f6af59899baf536791c30f18da9cc45f0afeb99d.zip
Fix petalsearch and remove petalsearch news
Diffstat (limited to 'searx')
-rw-r--r--searx/settings.yml32
1 files changed, 7 insertions, 25 deletions
diff --git a/searx/settings.yml b/searx/settings.yml
index 6f80b4c59..5a2a8bee7 100644
--- a/searx/settings.yml
+++ b/searx/settings.yml
@@ -1873,13 +1873,15 @@ engines:
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
+ url_xpath: //div[@class='card-source']
+ title_xpath: //div[@class='title-name']
+ content_xpath: //div[@class='webpage-text']
first_page_num: 1
disabled: true
+ headers:
+ User-Agent: Mozilla/5.0 (Linux; Android 7.0;) \
+ AppleWebKit/537.36 (KHTML, like Gecko) \
+ Mobile Safari/537.36 (compatible; PetalBot;+https://webmaster.petalsearch.com/site/petalbot)
about:
website: https://petalsearch.com/
wikidata_id: Q104399280
@@ -1893,26 +1895,6 @@ engines:
disabled: true
timeout: 3.0
- - 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
-
- name: lib.rs
shortcut: lrs
engine: xpath