From 0647b34b1d374448d5cd50e7033169f920eb136f Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 17 May 2021 15:21:53 +0200 Subject: [PATCH] [fix] engine archive is - search_url has been changed BTW: set soft_max_redirects from *archive is* by 1, to prevent logging:: DEBUG:httpx._client:HTTP Request: GET https://archive.is/search/?q=www.python.org "HTTP/2 302 Found" DEBUG:httpx._client:HTTP Request: GET https://archive.is/www.python.org "HTTP/2 200 OK" DEBUG:searx:archive is: ErrorContext('searx/search/processors/online.py', 110, 'count_error(self.engine_name,', None, '1 redirects, maximum: 0', ('200', 'OK', 'archive.is')) True Signed-off-by: Markus Heiser --- searx/settings.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/searx/settings.yml b/searx/settings.yml index 01f2769f..0be6a1e5 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -182,7 +182,7 @@ engines: - name : archive is engine : xpath - search_url : https://archive.is/{query} + search_url : https://archive.is/search/?q={query} url_xpath : (//div[@class="TEXT-BLOCK"]/a)/@href title_xpath : (//div[@class="TEXT-BLOCK"]/a) content_xpath : //div[@class="TEXT-BLOCK"]/ul/li @@ -190,6 +190,7 @@ engines: timeout : 7.0 disabled : True shortcut : ai + soft_max_redirects: 1 about: website: https://archive.is/ wikidata_id: Q13515725