From 378b29be2f943242915a2e489087eaaf9e39d14f Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 19 Mar 2022 14:16:37 +0100 Subject: [PATCH] fix startpage: update XPath in _fetch_supported_languages --- searx/engines/startpage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py index cf6872717..7b87808b9 100644 --- a/searx/engines/startpage.py +++ b/searx/engines/startpage.py @@ -245,7 +245,7 @@ def _fetch_supported_languages(resp): dom = html.fromstring(resp.text) sp_lang_names = [] - for option in dom.xpath('//form[@id="settings-form"]//select[@name="language"]/option'): + for option in dom.xpath('//form[@name="settings"]//select[@name="language"]/option'): sp_lang_names.append((option.get('value'), extract_text(option).lower())) supported_languages = {}