summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2023-11-13 19:12:50 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-12-03 13:47:17 +0100
commit2274d55d5a4dea76b645e3495673545fea0fe529 (patch)
tree9bf3508dea187862996b6a44552182bc8c35e76e /searx/engines
parent1e0813fd3a217fd5f012e17f8fc1386a0a16bf5b (diff)
[mod] add option max_page
Related: https://github.com/searxng/searxng/issues/2982 Closes: https://github.com/searxng/searxng/issues/2972 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/__init__.py1
-rw-r--r--searx/engines/google.py1
-rw-r--r--searx/engines/google_images.py1
-rw-r--r--searx/engines/google_scholar.py1
-rw-r--r--searx/engines/google_videos.py1
5 files changed, 5 insertions, 0 deletions
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py
index da2b2037e..0bea37ca8 100644
--- a/searx/engines/__init__.py
+++ b/searx/engines/__init__.py
@@ -45,6 +45,7 @@ ENGINE_DEFAULT_ARGS = {
"using_tor_proxy": False,
"send_accept_language_header": False,
"tokens": [],
+ "max_page": 0,
}
# set automatically when an engine does not have any tab category
DEFAULT_CATEGORY = 'other'
diff --git a/searx/engines/google.py b/searx/engines/google.py
index 51c6acbf2..90b58e270 100644
--- a/searx/engines/google.py
+++ b/searx/engines/google.py
@@ -48,6 +48,7 @@ about = {
# engine dependent config
categories = ['general', 'web']
paging = True
+max_page = 50
time_range_support = True
safesearch = True
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py
index 1f9759c96..d2d33d408 100644
--- a/searx/engines/google_images.py
+++ b/searx/engines/google_images.py
@@ -47,6 +47,7 @@ about = {
# engine dependent config
categories = ['images', 'web']
paging = True
+max_page = 50
time_range_support = True
safesearch = True
send_accept_language_header = True
diff --git a/searx/engines/google_scholar.py b/searx/engines/google_scholar.py
index 6f33d1e1a..8d11c956f 100644
--- a/searx/engines/google_scholar.py
+++ b/searx/engines/google_scholar.py
@@ -51,6 +51,7 @@ about = {
# engine dependent config
categories = ['science', 'scientific publications']
paging = True
+max_page = 50
language_support = True
time_range_support = True
safesearch = False
diff --git a/searx/engines/google_videos.py b/searx/engines/google_videos.py
index f922e1f70..0b1a51115 100644
--- a/searx/engines/google_videos.py
+++ b/searx/engines/google_videos.py
@@ -57,6 +57,7 @@ about = {
categories = ['videos', 'web']
paging = True
+max_page = 50
language_support = True
time_range_support = True
safesearch = True