360 Secure SkillHub
360 安全技能中心

Local web search using SearXNG

调用 Python 脚本向自托管 SearXNG 实例发起查询,聚合 Google、Brave、DuckDuckGo 等引擎结果,返回含标题、URL、描述、来源引擎与评分的 JSON。支持指定结果数量(1-20)与语言代码,仅需设置 SEARXNG_URL 环境变量。

分类:搜索
stperic
stperic
热度 54.44
最近更新 2026-05-11 15:51:03

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add stperic/local-websearch
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
searxng
description
Search the web using a self-hosted SearXNG metasearch engine. Aggregates Google, Brave, DuckDuckGo, and more without API keys.
homepage
https://docs.searxng.org
metadata
{"moltbot":{"emoji":"🔍","requires":{"bins":["python3"],"env":["SEARXNG_URL"]}}}

SearXNG Web Search

Privacy-respecting metasearch via your self-hosted SearXNG instance.

When to use (trigger phrases)

Use this skill when the user asks:

  • "search the web for..."
  • "look up..." / "find information about..."
  • "what is..." (when current info needed)
  • "research..." / "search for..."
  • "google..." (redirect to privacy-respecting search)

Quick start

python3 ~/.clawdbot/skills/searxng/scripts/searxng_search.py "your query"
python3 ~/.clawdbot/skills/searxng/scripts/searxng_search.py "query" --count 10
python3 ~/.clawdbot/skills/searxng/scripts/searxng_search.py "query" --lang de

Setup

Set SEARXNG_URL environment variable:

export SEARXNG_URL="http://your-searxng-host:8888"

Flags

Flag Default Description
-n, --count 5 Results to return (1-20)
-l, --lang auto Language code (en, de, fr, es, etc.)

Output

Returns JSON:

{
  "query": "search terms",
  "count": 5,
  "results": [
    {"title": "...", "url": "...", "description": "...", "engines": ["google", "brave"], "score": 1.5}
  ]
}

Notes

  • No API keys needed—SearXNG aggregates upstream engines
  • Results include source engines for transparency
  • Scores indicate relevance (higher = better)
  • For news, add "news" to query or use --lang for regional results