summaryrefslogtreecommitdiff
path: root/searx/engines/google_scholar.py
diff options
context:
space:
mode:
authorvojkovic <git@vojk.au>2026-08-20 14:39:00 +0000
committerBrock Vojkovic <brock@vojk.au>2026-08-22 11:00:06 +0800
commita4cb7df053ea1ebb657ba0d83ecc6b7623b0ff04 (patch)
tree1501adc1e85ee7d216bb265bb001d5a03b7231d6 /searx/engines/google_scholar.py
parentbbb3c7d82991c0c900d9ac268c7f603451cdffd4 (diff)
[fix] google: use Nokia UA (#6546)
Diffstat (limited to 'searx/engines/google_scholar.py')
-rw-r--r--searx/engines/google_scholar.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/searx/engines/google_scholar.py b/searx/engines/google_scholar.py
index e032e25a1..706291da7 100644
--- a/searx/engines/google_scholar.py
+++ b/searx/engines/google_scholar.py
@@ -77,8 +77,6 @@ def request(query: str, params: "OnlineParams") -> None:
"""Google-Scholar search request"""
google_info = get_google_info(params, traits)
- # subdomain is: scholar.google.xy
- google_info["subdomain"] = google_info["subdomain"].replace("www.", "scholar.")
args = {
"q": query,
@@ -89,7 +87,7 @@ def request(query: str, params: "OnlineParams") -> None:
}
args.update(time_range_args(params))
- params["url"] = "https://" + google_info["subdomain"] + "/scholar?" + urlencode(args)
+ params["url"] = "https://scholar.google.com/scholar?" + urlencode(args)
params["cookies"] = google_info["cookies"]
params["headers"].update(google_info["headers"])