@@ -95,7 +95,7 @@ def get_sc_code(headers):
95 # suspend startpage API --> https://github.com/searxng/searxng/pull/695
95 # suspend startpage API --> https://github.com/searxng/searxng/pull/695
96 raise SearxEngineResponseException(
96 raise SearxEngineResponseException(
97 suspended_time=7 * 24 * 3600, message="PR-695: query new sc time-stamp failed!"
97 suspended_time=7 * 24 * 3600, message="PR-695: query new sc time-stamp failed!"
100 sc_code = href[5:]
100 sc_code = href[5:]
101 sc_code_ts = time()
101 sc_code_ts = time()
@@ -107,10 +107,19 @@ def get_sc_code(headers):
107# do search-request
107# do search-request
108def request(query, params):
108def request(query, params):
110+ # pylint: disable=line-too-long
111+ # The format string from Startpage's FFox add-on [1]::
113+ # https://www.startpage.com/do/dsearch?query={searchTerms}&cat=web&pl=ext-ff&language=__MSG_extensionUrlLanguage__&extVersion=1.3.0
115+ # [1] https://addons.mozilla.org/en-US/firefox/addon/startpage-private-search/
111 'query': query,
118 'query': query,
112 'page': params['pageno'],
119 'page': params['pageno'],
113 'cat': 'web',
120 'cat': 'web',
122+ # 'extVersion': '1.3.0',
114 # 'abp': "-1",
123 # 'abp': "-1",
115 'sc': get_sc_code(params['headers']),
124 'sc': get_sc_code(params['headers']),