summaryrefslogtreecommitdiff
path: root/searx/settings.yml
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2025-11-04 18:00:02 +0100
committerBnyro <bnyro@tutanota.com>2025-11-05 17:56:13 +0100
commit1be19f8b5820d1c7b369f80cc48c6014a6d41085 (patch)
tree8ccab7cf0f8710cd320309f38681f6c55bd6ce8b /searx/settings.yml
parent3763b4bff4b6ad6d4d84ba74539755292d33bdec (diff)
[feat] sourcehut engine: implement as custom module, fix user agent
SourceHut uses a foss bot protection tool called `go-away` (which I can recommend BTW). It blocks common crawler user agents, such as the standard Firefox user agent. Hence, we're now using our custom SearXNG user agent to clarify we're not a crawler. Closes: https://github.com/searxng/searxng/issues/5270 Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/settings.yml')
-rw-r--r--searx/settings.yml19
1 files changed, 3 insertions, 16 deletions
diff --git a/searx/settings.yml b/searx/settings.yml
index 2e418177a..a3cccb5d5 100644
--- a/searx/settings.yml
+++ b/searx/settings.yml
@@ -2677,23 +2677,10 @@ engines:
- 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]
+ engine: sourcehut
+ # https://docs.searxng.org/dev/engines/online/sourcehut.html
+ # sourcehut_sort_order: longest-active
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
- name: goo
shortcut: goo