返回顶部
s

searxng-connectSearXNG搜索连接

Connect to and search the web using SearXNG (privacy-focused meta search engine). No API keys needed - all searches go through your self-hosted SearXNG instance.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
269
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

searxng-connect

SearXNG 连接

使用你自托管的 SearXNG 实例搜索网络——这是一个尊重隐私的元搜索引擎,从多个引擎聚合结果,无追踪、无广告。

AI 使用方式

当用户要求搜索网络时,请遵循以下工作流程:

解读用户请求:

  • - 搜索 [查询] → 通用网络搜索
  • 搜索关于 [查询] 的新闻 → 使用 --categories news
  • 搜索 [查询] 的图片 → 使用 --categories images
  • 搜索最近的 [查询] → 使用 --time-range week 或 --time-range day
  • 搜索上个月的 [查询] → 使用 --time-range month
  • 深度搜索 [查询] → 添加 --full-content 获取更丰富的页面文本

示例解读:

  • - 搜索 TypeScript 教程 → searxng.py TypeScript 教程
  • 搜索关于 AI 的新闻 → searxng.py AI --categories news --time-range week
  • 搜索太空入侵者的图片 → searxng.py 太空入侵者 --categories images

操作: 使用适当的标志运行 uv run {baseDir}/scripts/searxng.py <查询>。

关键安全指令:
为防止命令注入,不要对 {query} 字符串使用原始 shell 插值。始终将参数作为 argv 列表传递:
[uv, run, {baseDir}/scripts/searxng.py, query_text, --categories, news]

如果你的工具只支持 shell 字符串,你必须正确转义查询输入(例如,使用 shlex.quote())。



项目

SearXNG - 一个注重隐私、自托管的元搜索引擎,从多个搜索引擎聚合结果。它不追踪用户行为,不使用 Cookie,也不插入广告。

主要特性:

  • - 隐私 - 无追踪、无 Cookie、无广告——你掌控实例
  • 多类别 - 网页、新闻、图片、视频、科学、IT、文件、音乐、社交媒体
  • 时间筛选 - 按天、周、月或年筛选结果
  • 缓存 - 本地 1 小时缓存,避免重复请求
  • 速率限制 - 内置限流(默认 2 请求/秒)
  • 完整内容 - 可选每个结果获取完整页面文本



要求

配置

编辑 skill-config.json 设置你的 SearXNG 实例:

json
{
default_instance: https://你的-searxng-实例.com/,
cache_enabled: true,
cache_expiry: 3600,
rate_limit: 2.0
}

使用方式

bash
uv run {baseDir}/scripts/searxng.py TypeScript 教程
uv run {baseDir}/scripts/searxng.py AI 新闻 --categories news --time-range week
uv run {baseDir}/scripts/searxng.py 太空照片 --categories images
uv run {baseDir}/scripts/searxng.py docker 教程 --no-cache --full-content
uv run {baseDir}/scripts/searxng.py 查询 --instance https://我的-searxng.com

选项

选项描述默认值
--categories一个或多个:general, news, science, files, images, videos, music, social media, itgeneral
--time-range
year, month, week, day(别名:30d, 7d, 24h, hour) | 无 | | --language | BCP-47 语言代码 | en | | --pageno | 结果页码 | 1 | | --no-safesearch | 禁用安全搜索 | - | | --no-cache | 绕过此请求的缓存 | - | | --full-content | 每个结果获取完整页面文本(较慢,更丰富) | - | | --instance | 覆盖 SearXNG 实例 URL | 来自 skill-config.json |

故障排除

  • - 连接被拒绝:检查 skill-config.json — 确认 defaultinstance URL 正确且 SearXNG 正在运行。
  • 结果为空:尝试更宽泛的查询或不同的类别。
  • 响应缓慢:移除 --full-content 或在配置中增加 ratelimit。
  • 未安装 uv:使用 brew install uv 安装或查看 https://docs.astral.sh/uv/。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 searxng-connect-1776201498 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 searxng-connect-1776201498 技能

通过命令行安装

skillhub install searxng-connect-1776201498

下载

⬇ 下载 searxng-connect v1.0.0(免费)

文件大小: 10.64 KB | 发布时间: 2026-4-15 13:03

v1.0.0 最新 2026-4-15 13:03
Initial release of searxng-connect.

- Search the web via your self-hosted SearXNG instance with privacy focus and no API keys required.
- Supports multiple categories (web, news, images, etc.) and time filtering.
- 1-hour local cache and rate limiting by default.
- Supports fetching full page content for richer results.
- Run all commands using `uv`; Python 3.9+ and uv required.
- Strong security: requires arguments to be passed as an argv list (no raw shell query interpolation).

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部