mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 12:10:11 +01:00
Merge pull request #2188 from ahmad-alkadri/fix/petalsearch
Fix the petalsearch engine
This commit is contained in:
commit
52f6bc745b
@ -1874,13 +1874,15 @@ 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="webpage-content"]/div[@class="title-cont"]/a
|
url_xpath: //div[@class='card-source']
|
||||||
url_xpath: ./@href
|
title_xpath: //div[@class='title-name']
|
||||||
title_xpath: .
|
content_xpath: //div[@class='webpage-text']
|
||||||
content_xpath: ../../div[@class="webpage-text"]
|
|
||||||
suggestion_xpath: //div[@class="related-search-items"]/a
|
|
||||||
first_page_num: 1
|
first_page_num: 1
|
||||||
disabled: true
|
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:
|
about:
|
||||||
website: https://petalsearch.com/
|
website: https://petalsearch.com/
|
||||||
wikidata_id: Q104399280
|
wikidata_id: Q104399280
|
||||||
@ -1894,26 +1896,6 @@ engines:
|
|||||||
disabled: true
|
disabled: true
|
||||||
timeout: 3.0
|
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
|
- name: lib.rs
|
||||||
shortcut: lrs
|
shortcut: lrs
|
||||||
engine: xpath
|
engine: xpath
|
||||||
|
Loading…
Reference in New Issue
Block a user