summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Planchon <dev@planchon.dev>2022-08-10 11:37:08 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-08-10 21:48:12 +0200
commite0215e0cc8c95d42f1474dc17c8fb498000e37e3 (patch)
tree1e8d93e69ad0bbac028e09ff9730b5548a9d5f4e
parent43c545910b161731c3bc6791bdfa227c64e4489a (diff)
add sourcehut engine
-rw-r--r--searx/settings.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/searx/settings.yml b/searx/settings.yml
index 4e96d024f..ec03819a5 100644
--- a/searx/settings.yml
+++ b/searx/settings.yml
@@ -1863,6 +1863,26 @@ engines:
require_api_key: false
results: HTML
+ - name: sourcehut
+ shortcut: srht
+ engine: xpath
+ paging: true
+ search_url: https://sr.ht/projects?page={pageno}&search={query}
+ results_xpath: (//div[@class="event-list"])[1]/div[@class="event"]
+ url_xpath: ./h4/a[2]/@href
+ title_xpath: ./h4/a[2]
+ content_xpath: ./p
+ first_page_num: 1
+ categories: [it, repos]
+ disabled: true
+ about:
+ website: https://sr.ht
+ wikidata_id: Q78514485
+ official_api_documentation: https://man.sr.ht/
+ 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