summaryrefslogtreecommitdiff
path: root/searxng_extra
diff options
context:
space:
mode:
authorvojkovic <git@vojk.au>2026-07-04 11:58:28 +0000
committerMarkus Heiser <markus.heiser@darmarIT.de>2026-07-05 11:50:23 +0200
commit1cdf01a71916e67352eb7e6d60ddfdeb62f5f1a2 (patch)
tree6e148ff784a10e600fe411ac5b86cfb678ab1779 /searxng_extra
parent747cec4c2304fc2e06ceb4a46dbe25bfb769db1e (diff)
[feat] engines: add google cse engine (#6364)
Adds a new google cse engine as an alternative to the currently broken html google engine. It works by generating a token which is cached for 1 hour and it only uses the public CSE id from blackle.com. We do have two others but I think just hardcoding one will be enough. Will be broken in 2027 due to google deprecating it but I it will be good while it lasts. I found I can get up to 20 results per page. Setting safesearch and language works and I just copied the traits from the google engine. Also set old google engine as inactive as it is completely broken for now.
Diffstat (limited to 'searxng_extra')
-rwxr-xr-xsearxng_extra/update/update_engine_traits.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searxng_extra/update/update_engine_traits.py b/searxng_extra/update/update_engine_traits.py
index e955c29c9..cde1b29ec 100755
--- a/searxng_extra/update/update_engine_traits.py
+++ b/searxng_extra/update/update_engine_traits.py
@@ -131,8 +131,8 @@ def fetch_traits_map() -> EngineTraitsMap:
def filter_locales(traits_map: EngineTraitsMap) -> set[str]:
"""Filter language & region tags by a threshold."""
- min_eng_per_region = 18
- min_eng_per_lang = 23
+ min_eng_per_region = 19
+ min_eng_per_lang = 24
_: dict[str, int] = {}
for eng in traits_map.values():