diff options
| author | Bnyro <bnyro@tutanota.com> | 2025-12-03 12:36:29 +0100 |
|---|---|---|
| committer | Bnyro <bnyro@tutanota.com> | 2025-12-03 17:03:27 +0100 |
| commit | 1f6ea41272bece067f7374816d4255c28850d124 (patch) | |
| tree | 8484837fa2640c82b5ac9c9173b39e1551a62b23 | |
| parent | 5450d22796354d5f7b5358debbb3d7837990a8ee (diff) | |
[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.
| -rw-r--r-- | searx/engines/mojeek.py | 3 |
1 files changed, 2 insertions, 1 deletions
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': |