From ac0c6cc2d146e6fcf18006d9c71d3796be5a9c2b Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 26 Nov 2024 09:56:41 +0100 Subject: [PATCH] [chore] remove invalid base_url from settings.yml engines The engines do not have / do not need a property `base_url`, lets remove it from the settings.yml Signed-off-by: Markus Heiser --- searx/engines/wordnik.py | 6 +----- searx/settings.yml | 3 --- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/searx/engines/wordnik.py b/searx/engines/wordnik.py index 21eaeccc3..9b048a068 100644 --- a/searx/engines/wordnik.py +++ b/searx/engines/wordnik.py @@ -20,13 +20,9 @@ about = { categories = ['general'] paging = False -URL = 'https://www.wordnik.com' -SEARCH_URL = URL + '/words/{query}' - def request(query, params): - params['url'] = SEARCH_URL.format(query=query) - logger.debug(f"query_url --> {params['url']}") + params['url'] = f"https://www.wordnik.com/words/{query}" return params diff --git a/searx/settings.yml b/searx/settings.yml index 27b78b8da..dd981e5e9 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -443,7 +443,6 @@ engines: shortcut: wp # add "list" to the array to get results in the results list display_type: ["infobox"] - base_url: 'https://{language}.wikipedia.org/' categories: [general] - name: bilibili @@ -2233,7 +2232,6 @@ engines: - name: wordnik engine: wordnik shortcut: def - base_url: https://www.wordnik.com/ categories: [dictionaries] timeout: 5.0 @@ -2282,7 +2280,6 @@ engines: - name: sjp.pwn engine: sjp shortcut: sjp - base_url: https://sjp.pwn.pl/ timeout: 5.0 disabled: true