[enh] initial Marginalia.nu support (foss)

Currently it uses a public api_key `/public/` [1]

The 'index' parameter selects the search index, corresponding to the drop down
next to the search field in the main GUI.

    0: popular
    1: blogs
    2: big_sites
    3: default
    4: experimental

'experimental' is more up to date and does not exclude other sites, which is the
case with 'big sites' or 'blogs'.

[1] https://api.marginalia.nu/
[2] https://git.marginalia.nu/marginalia/marginalia.nu
[3] https://news.ycombinator.com/item?id=31536626

Closes: https://github.com/searxng/searxng/issues/1620
This commit is contained in:
Allen 2022-06-07 22:48:14 +02:00 committed by Markus Heiser
parent ea0cddba0b
commit 5b815b3966

View file

@ -1377,6 +1377,27 @@ engines:
about:
website: https://wiby.me/
- name: marginalia
engine: json_engine
shortcut: mar
categories: general
paging: false
# index: {"0": "popular", "1": "blogs", "2": "big_sites",
# "3": "default", "4": experimental"}
search_url: https://api.marginalia.nu/public/search/{query}?index=4&count=20
results_query: results
url_query: url
title_query: title
content_query: description
timeout: 1.5
disabled: true
about:
website: https://www.marginalia.nu/
official_api_documentation: https://api.marginalia.nu/
use_official_api: true
require_api_key: true
results: JSON
- name: alexandria
engine: json_engine
shortcut: alx