summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2023-02-15 13:57:28 +0100
committerGitHub <noreply@github.com>2023-02-15 13:57:28 +0100
commit52f6bc745bfff4f0cb523098fae624656e54c82e (patch)
tree05994f61a2532a0a2a308f80d2928761fcb2cd6a
parentba5b6c382fcab94382f1a9f4aa99946a77373598 (diff)
parentf6af59899baf536791c30f18da9cc45f0afeb99d (diff)
Merge pull request #2188 from ahmad-alkadri/fix/petalsearch
Fix the petalsearch engine
-rw-r--r--searx/settings.yml32
1 files changed, 7 insertions, 25 deletions
diff --git a/searx/settings.yml b/searx/settings.yml
index fcf675e41..b4d7f03a5 100644
--- a/searx/settings.yml
+++ b/searx/settings.yml
@@ -1874,13 +1874,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
@@ -1894,26 +1896,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