diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-01-09 16:11:22 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-01-10 11:22:38 +0100 |
commit | df238e944c8902ac7e075123ca22902c367fd0de (patch) | |
tree | 9bf912c3af61f5749589f9e5774dd4a2fab4fb5c | |
parent | 21e884f36903e67a2d786498c25ea428bf8349b5 (diff) | |
download | searxng-df238e944c8902ac7e075123ca22902c367fd0de.tar.gz searxng-df238e944c8902ac7e075123ca22902c367fd0de.zip |
[mod] starpage engine: add comment about Startpage's FFox add-on
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rw-r--r-- | searx/engines/startpage.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py index ae7916fc3..5e4490afb 100644 --- a/searx/engines/startpage.py +++ b/searx/engines/startpage.py @@ -95,7 +95,7 @@ def get_sc_code(headers): # suspend startpage API --> https://github.com/searxng/searxng/pull/695 raise SearxEngineResponseException( suspended_time=7 * 24 * 3600, message="PR-695: query new sc time-stamp failed!" - ) + ) from exc sc_code = href[5:] sc_code_ts = time() @@ -107,10 +107,19 @@ def get_sc_code(headers): # do search-request def request(query, params): + # pylint: disable=line-too-long + # The format string from Startpage's FFox add-on [1]:: + # + # https://www.startpage.com/do/dsearch?query={searchTerms}&cat=web&pl=ext-ff&language=__MSG_extensionUrlLanguage__&extVersion=1.3.0 + # + # [1] https://addons.mozilla.org/en-US/firefox/addon/startpage-private-search/ + args = { 'query': query, 'page': params['pageno'], 'cat': 'web', + # 'pl': 'ext-ff', + # 'extVersion': '1.3.0', # 'abp': "-1", 'sc': get_sc_code(params['headers']), } |