No Description

Markus Heiser fa61b30ef7 [fix] README: https://docs.searxng.org/dev/plugins/development.html 1 month ago
src 5ab676bfd8 [mod] implement plugin class: only_show_green_results.SXNGPlugin 1 month ago
.editorconfig 5ab676bfd8 [mod] implement plugin class: only_show_green_results.SXNGPlugin 1 month ago
.gitignore 5ab676bfd8 [mod] implement plugin class: only_show_green_results.SXNGPlugin 1 month ago
README.rst fa61b30ef7 [fix] README: https://docs.searxng.org/dev/plugins/development.html 1 month ago
pylintrc.toml 5ab676bfd8 [mod] implement plugin class: only_show_green_results.SXNGPlugin 1 month ago
pyproject.toml 5ab676bfd8 [mod] implement plugin class: only_show_green_results.SXNGPlugin 1 month ago
pyrightconfig.json 5ab676bfd8 [mod] implement plugin class: only_show_green_results.SXNGPlugin 1 month ago

README.rst

.. SPDX-License-Identifier: AGPL-3.0-or-later

==============================
Only show green hosted results
==============================

A `SearXNG plugin `__ to check if a
domain is part of the `Green WEB `__.

Installation
============

**USE WITH CARE**

Its recommended to install (and regularly update) `The Green Domains dataset
`__
otherwise the plugin uses the API what sends a lot of requests from the SearXNG
instance to the Green WEB foundation and slows down the SearXNG instance
massively.

Change to the environment in which the plugin is to be installed::

$ sudo utils/searxng.sh instance cmd python -m \
pip install git+https://github.com/return42/tgwf-searx-plugins


Development
===========

This project is managed by `hatch `_, for development
tasks you should install ``hatch``:

.. code:: sh

$ pipx install hatch

Format and *lint* your code before commit:

.. code:: sh

$ hatch run fix
$ hatch run check

To enter the development environment use ``shell``:

.. code:: sh

$ hatch shell

To get a developer installation in a SearXNG developer environment:

.. code:: sh

$ git clone git@github.com:return42/tgwf-searx-plugins.git
$ ./manage pyenv.cmd python -m \
pip install -e tgwf-searx-plugins

To register the plugin in SearXNG add ``only_show_green_results.SXNGPlugin`` to
the ``plugins:``:

.. code:: yaml

plugins:
# ...
only_show_green_results.SXNGPlugin:
active: false