SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[feat] marginalia: add support for pagination
Bnyro7159b8aed3c3
diff --git a/searx/engines/marginalia.py b/searx/engines/marginalia.pyindex 218e9db1b..989192553 100644--- a/searx/engines/marginalia.py+++ b/searx/engines/marginalia.py@@ -45,7 +45,7 @@ about = {base_url = "https://api2.marginalia-search.com"safesearch = Truecategories = ["general"]-paging = False+paging = Trueresults_per_page = 20api_key = None"""To get an API key, please follow the instructions from `Key and license`_@@ -85,7 +85,12 @@ class ApiSearchResults(t.TypedDict):def request(query: str, params: dict[str, t.Any]):- query_params = {"count": results_per_page, "nsfw": min(params["safesearch"], 1), "query": query}+ query_params = {+ "page": params["pageno"],+ "count": results_per_page,+ "nsfw": min(params["safesearch"], 1),+ "query": query,+ }params["url"] = f"{base_url}/search?{urlencode(query_params)}"params["headers"]["User-Agent"] = searxng_useragent()