summaryrefslogtreecommitdiff
path: root/searx/engines/google.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-06-21 16:09:16 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-06-21 16:50:23 +0200
commitf096d68ec6c8ae3efc6656181570791115746d5d (patch)
treec11345c5cd2ee9616b3a9b59948de2520ab9c311 /searx/engines/google.py
parentf4da4bafa75842d3a8171343f10f244a42fbdd30 (diff)
downloadsearxng-f096d68ec6c8ae3efc6656181570791115746d5d.tar.gz
searxng-f096d68ec6c8ae3efc6656181570791115746d5d.zip
[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>
Diffstat (limited to 'searx/engines/google.py')
-rw-r--r--searx/engines/google.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/engines/google.py b/searx/engines/google.py
index 6ba164814..284209523 100644
--- a/searx/engines/google.py
+++ b/searx/engines/google.py
@@ -270,8 +270,7 @@ def request(query, params):
additional_parameters = {}
if use_mobile_ui:
additional_parameters = {
- 'asearch': "arc",
- '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
+ 'async': 'use_ac:true,_fmt:pc',
}
# https://www.google.de/search?q=corona&hl=de&lr=lang_de&start=0&tbs=qdr%3Ad&safe=medium