summaryrefslogtreecommitdiff
path: root/searx/engines/google_scholar.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2022-07-25 13:51:52 +0200
committerGitHub <noreply@github.com>2022-07-25 13:51:52 +0200
commitb14ec7286d3d6517d5266870d546aaa1c7e41656 (patch)
tree601eb8e7109230929d0a13210cf77a69576dcc9b /searx/engines/google_scholar.py
parent07aa2bfd98fec41427a77532e6890a7af35c9383 (diff)
parent5fb2071cb2248c0f0ada7affb0c47f841ddbf102 (diff)
Merge pull request #1552 from unixfox/fix-consent-google
ucbcb bypass method to CONSENT yes for google
Diffstat (limited to 'searx/engines/google_scholar.py')
-rw-r--r--searx/engines/google_scholar.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/google_scholar.py b/searx/engines/google_scholar.py
index e4c2d7273..f9c73097d 100644
--- a/searx/engines/google_scholar.py
+++ b/searx/engines/google_scholar.py
@@ -85,12 +85,13 @@ def request(query, params):
+ lang_info['subdomain']
+ '/scholar'
+ "?"
- + urlencode({'q': query, **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'start': offset, 'ucbcb': 1})
+ + urlencode({'q': query, **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'start': offset})
)
query_url += time_range_url(params)
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'