diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2022-07-25 13:51:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-25 13:51:52 +0200 |
| commit | b14ec7286d3d6517d5266870d546aaa1c7e41656 (patch) | |
| tree | 601eb8e7109230929d0a13210cf77a69576dcc9b /searx/engines/google_images.py | |
| parent | 07aa2bfd98fec41427a77532e6890a7af35c9383 (diff) | |
| parent | 5fb2071cb2248c0f0ada7affb0c47f841ddbf102 (diff) | |
Merge pull request #1552 from unixfox/fix-consent-google
ucbcb bypass method to CONSENT yes for google
Diffstat (limited to 'searx/engines/google_images.py')
| -rw-r--r-- | searx/engines/google_images.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py index b5c7b5302..a65c0ce37 100644 --- a/searx/engines/google_images.py +++ b/searx/engines/google_images.py @@ -132,9 +132,7 @@ def request(query, params): + lang_info['subdomain'] + '/search' + "?" - + urlencode( - {'q': query, 'tbm': "isch", **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'num': 30, 'ucbcb': 1} - ) + + urlencode({'q': query, 'tbm': "isch", **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'num': 30}) ) if params['time_range'] in time_range_dict: @@ -143,6 +141,7 @@ def request(query, params): query_url += '&' + urlencode({'safe': filter_mapping[params['safesearch']]}) params['url'] = query_url + params['cookies']['CONSENT'] = "YES+" params['headers'].update(lang_info['headers']) params['headers']['Accept'] = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' return params |