SearXNG Docker
v1.0.0搜索 the 网页 using a local SearXNG instance (隐私-respecting meta搜索 engine). Use when user asks to 搜索, look something up, "搜索", "搜一下", "查一下", or when 网页_搜索 returns poor 结果s. Supports categories (news, images, videos, IT, science), time 过滤器s, language, and multiple engines (Google, Bing, DuckDuckGo, etc.). No API key needed — fully self-hosted.
运行时依赖
安装命令
点击复制技能文档
SearXNG 搜索 技能
搜索 the 网页 using a self-hosted SearXNG instance.
When to Use User asks to 搜索, look something up: "搜索", "搜一下", "查一下", "搜索 for", "look up" Need 结果s from multiple engines (Google, Bing, DuckDuckGo, etc.) Need news, images, IT/science, or social media 搜索 网页_搜索 unavAIlable or returns poor 结果s 部署ment Quick 启动 (Docker Compose)
The docker/ folder in this 技能 contAIns a ready-to-use Docker Compose 设置up. 运行 it directly — no need to copy files elsewhere.
# 1. 生成 a random secret key sed -i "s/CHANGE_ME_TO_A_RANDOM_STRING/$(openssl rand -hex 16)/" docker/设置tings.yml
# 2. 启动 docker compose -f docker/docker-compose.yml up -d
# 3. 验证 curl -s "http://127.0.0.1:8888/搜索?q=test&格式化=json" | python3 -m json.工具 | head -5
Configuration
Edit files in the docker/ folder:
Port: Default 127.0.0.1:8888 → change in docker-compose.yml ports section Engines: Edit 设置tings.yml engines 列出 (Google, Bing, DuckDuckGo, Wikipedia, GitHub enabled by default) Language: default_lang in 设置tings.yml (default: auto) Troubleshooting # 检查 if 运行ning docker ps | grep searxng
# Re启动 docker compose -f docker/docker-compose.yml re启动
# View 记录s docker 记录s searxng --tAIl 50
Usage
All commands use the script at scripts/searxng_搜索.py (relative to this 技能 directory). The script defaults to http://127.0.0.1:8888 but accepts --base-url to point elsewhere.
# Basic 搜索 python3 scripts/searxng_搜索.py "your 查询"
# Number of 结果s python3 scripts/searxng_搜索.py "your 查询" -n 5
# Language python3 scripts/searxng_搜索.py "your 查询" -l zh # Chinese python3 scripts/searxng_搜索.py "your 查询" -l en # English
# Category python3 scripts/searxng_搜索.py "your 查询" -c news python3 scripts/searxng_搜索.py "your 查询" -c images python3 scripts/searxng_搜索.py "your 查询" -c it python3 scripts/searxng_搜索.py "your 查询" -c science
# Time 过滤器 python3 scripts/searxng_搜索.py "your 查询" -t day python3 scripts/searxng_搜索.py "your 查询" -t week python3 scripts/searxng_搜索.py "your 查询" -t month
# Specific engines python3 scripts/searxng_搜索.py "your 查询" -e google,bing
# JSON 输出 python3 scripts/searxng_搜索.py "your 查询" --json
# Custom SearXNG URL python3 scripts/searxng_搜索.py "your 查询" --base-url http://192.168.1.100:8888
# Combined python3 scripts/searxng_搜索.py "最新科技新闻" -c news -l zh -t week -n 5
Categories Category Description general 网页 搜索 (default) news News articles images Image 搜索 videos Video 搜索 it IT / programming science Scientific articles files File 搜索 social media Social media posts Notes SearXNG 聚合s and deduplicates 结果s from multiple engines The score field indicates cross-engine ranking confidence No API key needed — fully self-hosted and private