on master help sign in
[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>

commit412677d495f80b7992bc323f1a146da7e6b5134c authorMarkus Heiser <markus.heiser@darmarit.de> dateMon 21 Jun 2021, 16:09 (5 years ago) parent8bf216e
1 file changed+1−2
searx/engines/google.py+1−2
searx/engines/google.py+1−2
@@ -210,8 +210,7 @@ def request(query, params):
210210 additional_parameters = {}
211211 if use_mobile_ui:
212212 additional_parameters = {
213− 'asearch': "arc",
214− '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
213+ 'async': 'use_ac:true,_fmt:pc',
215214 }
216215
217216 # https://www.google.de/search?q=corona&hl=de&lr=lang_de&start=0&tbs=qdr%3Ad&safe=medium