Demo Online Engine

Back to top

Within this module we implement a demo online engine. Do not look to close to the implementation, its just a simple example which queries The Art Institute of Chicago

Configuration

To get in use of this demo engine add the following entry to your engines list in settings.yml:

- name: my online engine
  engine: demo_online
  shortcut: demo
  disabled: false

Implementations

searx.engines.demo_online.setup(engine_settings: OnlineParams) → bool[source] : Dynamic setup of the engine settings.

For more details see [`searx.enginelib.Engine.setup`](https://docs.searxng.org/dev/engines/enginelib.html#searx.enginelib.Engine.setup).

searx.engines.demo_online.init(engine_settings: dict[str, Any]) → bool[source] : Initialization of the engine.

For more details see [`searx.enginelib.Engine.init`](https://docs.searxng.org/dev/engines/enginelib.html#searx.enginelib.Engine.init).

searx.engines.demo_online.request(query: str, params: OnlineParams) → None[source] : Build up the params for the online request. In this example we build a URL to fetch images from artic.edu.

searx.engines.demo_online.response(resp: SXNG_Response) → EngineResults[source] : Parse out the result items from the response. In this example we parse the response from api.artic.edu and filter out all images.

Copyright © SearXNG team

Made with Furo

💾 🌐