From 2d5eed9b5925d94f582576940c968c0c8adb4b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Mon, 18 Dec 2017 21:38:52 +0100 Subject: [PATCH] send constant cookie with query to Google --- searx/engines/google.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/searx/engines/google.py b/searx/engines/google.py index 47a560aac..0a8678362 100644 --- a/searx/engines/google.py +++ b/searx/engines/google.py @@ -187,6 +187,8 @@ def request(query, params): else: google_hostname = default_hostname + # original format: ID=3e2b6616cee08557:TM=5556667580:C=r:IP=4.1.12.5-:S=23ASdf0soFgF2d34dfgf-_22JJOmHdfgg + params['cookies']['GOOGLE_ABUSE_EXEMPTION'] = 'x' params['url'] = search_url.format(offset=offset, query=urlencode({'q': query}), hostname=google_hostname,