Loading searx/engines/google.py +1 −0 Original line number Diff line number Diff line Loading @@ -287,6 +287,7 @@ def request(query, params): 'oe': "utf8", 'start': offset, 'filter': '0', 'ucbcb': 1, **additional_parameters, } ) Loading searx/engines/google_images.py +1 −8 Original line number Diff line number Diff line Loading @@ -133,14 +133,7 @@ def request(query, params): + '/search' + "?" + urlencode( { 'q': query, 'tbm': "isch", **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'num': 30, } {'q': query, 'tbm': "isch", **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'num': 30, 'ucbcb': 1} ) ) Loading searx/engines/google_news.py +1 −9 Original line number Diff line number Diff line Loading @@ -14,7 +14,6 @@ ignores some parameters from the common :ref:`google API`: # pylint: disable=invalid-name import binascii from datetime import datetime import re from urllib.parse import urlencode from base64 import b64decode Loading Loading @@ -99,13 +98,7 @@ def request(query, params): + '/search' + "?" + urlencode( { 'q': query, **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'gl': lang_info['country'], } {'q': query, **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'gl': lang_info['country'], 'ucbcb': 1} ) + ('&ceid=%s' % ceid) ) # ceid includes a ':' character which must not be urlencoded Loading @@ -113,7 +106,6 @@ def request(query, params): params['headers'].update(lang_info['headers']) params['headers']['Accept'] = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' params['headers']['Cookie'] = "CONSENT=YES+cb.%s-14-p0.en+F+941;" % datetime.now().strftime("%Y%m%d") return params Loading searx/engines/google_play_apps.py +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ about = { } categories = ["files", "apps"] search_url = "https://play.google.com/store/search?{query}&c=apps" search_url = "https://play.google.com/store/search?{query}&c=apps&ucbcb=1" def request(query, params): Loading searx/engines/google_scholar.py +1 −9 Original line number Diff line number Diff line Loading @@ -85,15 +85,7 @@ def request(query, params): + lang_info['subdomain'] + '/scholar' + "?" + urlencode( { 'q': query, **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'start': offset, } ) + urlencode({'q': query, **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'start': offset, 'ucbcb': 1}) ) query_url += time_range_url(params) Loading Loading
searx/engines/google.py +1 −0 Original line number Diff line number Diff line Loading @@ -287,6 +287,7 @@ def request(query, params): 'oe': "utf8", 'start': offset, 'filter': '0', 'ucbcb': 1, **additional_parameters, } ) Loading
searx/engines/google_images.py +1 −8 Original line number Diff line number Diff line Loading @@ -133,14 +133,7 @@ def request(query, params): + '/search' + "?" + urlencode( { 'q': query, 'tbm': "isch", **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'num': 30, } {'q': query, 'tbm': "isch", **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'num': 30, 'ucbcb': 1} ) ) Loading
searx/engines/google_news.py +1 −9 Original line number Diff line number Diff line Loading @@ -14,7 +14,6 @@ ignores some parameters from the common :ref:`google API`: # pylint: disable=invalid-name import binascii from datetime import datetime import re from urllib.parse import urlencode from base64 import b64decode Loading Loading @@ -99,13 +98,7 @@ def request(query, params): + '/search' + "?" + urlencode( { 'q': query, **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'gl': lang_info['country'], } {'q': query, **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'gl': lang_info['country'], 'ucbcb': 1} ) + ('&ceid=%s' % ceid) ) # ceid includes a ':' character which must not be urlencoded Loading @@ -113,7 +106,6 @@ def request(query, params): params['headers'].update(lang_info['headers']) params['headers']['Accept'] = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' params['headers']['Cookie'] = "CONSENT=YES+cb.%s-14-p0.en+F+941;" % datetime.now().strftime("%Y%m%d") return params Loading
searx/engines/google_play_apps.py +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ about = { } categories = ["files", "apps"] search_url = "https://play.google.com/store/search?{query}&c=apps" search_url = "https://play.google.com/store/search?{query}&c=apps&ucbcb=1" def request(query, params): Loading
searx/engines/google_scholar.py +1 −9 Original line number Diff line number Diff line Loading @@ -85,15 +85,7 @@ def request(query, params): + lang_info['subdomain'] + '/scholar' + "?" + urlencode( { 'q': query, **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'start': offset, } ) + urlencode({'q': query, **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'start': offset, 'ucbcb': 1}) ) query_url += time_range_url(params) Loading