Skip to content

pkorba/searxng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SearXNG Bot

A maubot plugin that performs a web search on user's behalf using SearXNG and responds with the best matching result. It requires access to SearXNG instance that exposes its JSON API. SearXNG is a free internet metasearch engine which aggregates results from up to 248 search services. This plugin supports !bang syntax (except external bangs and automatic redirect) so it reduces the need for service specific plugins.

bot_searxng

Usage

Type the query you'd like to pass to the search engine.

!sx query
!searxng query

Configuration

The available options are:

  • url - public URL address of SearXNG instance.
  • port - port number for url
  • language - default search language. Available options are listed here. Defaults to all.
  • safesearch - available options are on, off, and moderate (default). Controls the safe search filter. Keep in mind that some engines may not support that feature. See if an engine supports safe search in the preferences page of a SearXNG instance.

Notes

  • This bot requires SearXNG instance to expose public JSON API. By default, this is disabled in instance's settings. You can change that by adding json to formats in search section of the settings (settings.yml):
  # remove format to deny access, use lower case.
  # formats: [html, csv, json, rss]
  formats:
    - html
    - json  # <-- add this line

Disclaimer

This plugin is not affiliated with SearXNG. The official SearXNG website can be found at https://docs.searxng.org/.

About

A maubot for Matrix messaging that performs an web search on user's behalf using SearXNG instance and responds with the best match

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages