From 1f6ea41272bece067f7374816d4255c28850d124 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Wed, 3 Dec 2025 12:36:29 +0100 Subject: [PATCH] [fix] mojeek: first search page is rate-limited Mojeek blocks all requests where the page offset parameter `s` is set to 0, hence we may not set it for fetching the first results page. --- searx/engines/mojeek.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/searx/engines/mojeek.py b/searx/engines/mojeek.py index 1a454ca65..596f90bfd 100644 --- a/searx/engines/mojeek.py +++ b/searx/engines/mojeek.py @@ -65,7 +65,8 @@ def request(query, params): if search_type: args['fmt'] = search_type - if search_type == '': + # setting the page number on the first page (i.e. s=0) triggers a rate-limit + if search_type == '' and params['pageno'] > 1: args['s'] = 10 * (params['pageno'] - 1) if params['time_range'] and search_type != 'images':