[mod] google engine: reduce mobile UI parameters to what is needed

Reverse engineering shows that not all of the parameters used by google's mobile
UI (aka "more results" button) are needed [1].

[1] https://github.com/searxng/searxng/pull/160#issuecomment-865013625

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-06-21 16:09:16 +02:00 committed by Noémi Ványi
parent 8bf216eab6
commit 412677d495
1 changed files with 1 additions and 2 deletions

View File

@ -210,8 +210,7 @@ def request(query, params):
additional_parameters = {} additional_parameters = {}
if use_mobile_ui: if use_mobile_ui:
additional_parameters = { additional_parameters = {
'asearch': "arc", 'async': 'use_ac:true,_fmt:pc',
'async': 'arc_id:srp_510,ffilt:all,ve_name:MoreResultsContainer,next_id:srp_5,use_ac:true,_id:arc-srp_510,_pms:qs,_fmt:pc' # pylint: disable=line-too-long
} }
# https://www.google.de/search?q=corona&hl=de&lr=lang_de&start=0&tbs=qdr%3Ad&safe=medium # https://www.google.de/search?q=corona&hl=de&lr=lang_de&start=0&tbs=qdr%3Ad&safe=medium