From 3829c253ff86eb169966c6b6e8c4247b774c68cb Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 14 Nov 2023 08:25:06 +0100 Subject: [mod] add option max_page to bing, brave, qwant, startpage & mojeek [1] https://github.com/searxng/searxng/issues/2982#issuecomment-1808975780 Reported-by: @Damaj301damaj-lol [1] Signed-off-by: Markus Heiser --- searx/engines/qwant.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'searx/engines/qwant.py') diff --git a/searx/engines/qwant.py b/searx/engines/qwant.py index 168eb860e..1f8556cf1 100644 --- a/searx/engines/qwant.py +++ b/searx/engines/qwant.py @@ -75,6 +75,10 @@ about = { # engine dependent config categories = [] paging = True +max_page = 5 +"""5 pages maximum (``&p=5``): Trying to do more just results in an improper +redirect""" + qwant_categ = None """One of ``web-lite`` (or ``web``), ``news``, ``images`` or ``videos``""" @@ -112,10 +116,6 @@ def request(query, params): args = {'q': query} params['raise_for_httperror'] = False - # all qwant engines (incl qwant-lite) delivers only 5 pages maximum - if params['pageno'] > 5: - return None - if qwant_categ == 'web-lite': url = web_lite_url + '?' -- cgit v1.2.3