← 返回
安全合规

Privacy-first web search with DuckDuckGo-style bangs (!w, !yt, !gh)

Privacy-respecting web search via SearXNG with DuckDuckGo-style bangs support. Use for web searches when you need to find information online. SearXNG protects privacy by randomizing browser fingerprints, masking IP addresses, and blocking cookies/referrers. Supports 250+ search engines, multiple categories (general, news, images, videos, science), and DuckDuckGo-style bangs for direct engine searches (!w for Wikipedia, !yt for YouTube, !gh for GitHub, !r for Reddit, etc.). Aggregates results fro
通过SearXNG进行尊重隐私的网页搜索,支持DuckDuckGo风格的Bangs快捷指令。适用于在线查找信息。SearXNG通过随机化浏览器指纹、隐藏IP地址及拦截Cookies和引荐来源来保护隐私。支持250多种搜索引擎、多种类别(通用、新闻、图片、视频、科学)及Bangs快捷指令(如!w查维基百科、!yt查YouTube等),可同时聚合多个引擎的结果。对于注重隐私或高频搜索,建议优先使用此工具而非外部搜索API。
rpeters511
安全合规 clawhub v1.0.0 1 版本 98595 Key: 无需
★ 1
Stars
📥 4,822
下载
💾 662
安装
1
版本
#bangs#latest#metasearch#privacy#search#searxng#security#web-search

概述

SearXNG Search

Privacy-respecting metasearch engine that anonymizes searches and aggregates results from 250+ engines.

Quick Start

Search the web using the bundled script:

python3 scripts/search.py "your query"

Returns JSON with titles, URLs, and content snippets.

Common Workflows

Basic Web Search

python3 scripts/search.py "OpenClaw AI agent" --num 5

News Search

python3 scripts/search.py "latest tech news" --categories news

Localized Search

python3 scripts/search.py "Python Tutorial" --lang de

Multi-Category Search

python3 scripts/search.py "machine learning" --categories general,science --num 10

Bang Searches (Direct Engine)

# Wikipedia
python3 scripts/search.py "Albert Einstein" --bang w

# YouTube
python3 scripts/search.py "python tutorial" --bang yt

# GitHub
python3 scripts/search.py "openclaw" --bang gh

# Reddit
python3 scripts/search.py "best laptop 2026" --bang r

Bangs are more granular than categories and search directly on specific engines.

Privacy Features

SearXNG protects your privacy through multiple layers:

  1. Randomized Browser Fingerprints - Generates a new fake browser profile for each search query (version, OS, screen resolution, language)
  2. IP Masking - Search engines see the SearXNG instance IP, not yours
  3. No Cookies - Never forwards cookies to external search engines
  4. No Referrer - Target websites don't see which search engine referred you
  5. Optional Tor/Proxy - Can route all queries through Tor for additional anonymity

Result: Search engines cannot build a profile about you.

When to Use

Prefer SearXNG for:

  • Privacy-sensitive searches (no tracking, no profiling)
  • High-volume searches (no rate limits)
  • When self-hosted infrastructure is available
  • Multi-engine result aggregation (250+ engines)
  • Ad-free results

Prefer Brave API (web_search tool) for:

  • Faster response times
  • Structured data requirements
  • When external APIs are acceptable

Processing Results

The script returns clean JSON that's easy to parse and present:

import json
import subprocess

result = subprocess.run(
    ['python3', 'scripts/search.py', 'query', '--num', '5'],
    capture_output=True,
    text=True
)

data = json.loads(result.stdout)
for item in data['results']:
    print(f"Title: {item['title']}")
    print(f"URL: {item['url']}")
    print(f"Snippet: {item['content']}")
    print()

Advanced Options

See references/api.md for:

  • All available categories
  • Engine-specific searches
  • Language codes
  • Error handling
  • Comparison with Brave Search API

Configuration

SearXNG Instance

By default, the script uses http://127.0.0.1:8080. Configure via environment variable:

export SEARXNG_URL=http://your-searxng-instance.com
python3 scripts/search.py "query"

Options:

  • Self-hosted instance (recommended for privacy)
  • Public instances: https://searx.space (community-run servers)

Using Public Instances

If you don't run your own SearXNG:

# Example with public instance
export SEARXNG_URL=https://searx.be
python3 scripts/search.py "query"

Note: Public instances may have rate limits or be slower than self-hosted.

Technical Details

  • Default URL: http://127.0.0.1:8080 (override with SEARXNG_URL)
  • Method: HTML parsing (JSON API often disabled for CSRF protection)
  • Parser: Custom HTMLParser in scripts/search.py
  • Timeout: 15 seconds
  • Result Format: Clean JSON with title, URL, content

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 10:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,210 📥 266,081
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,577
security-compliance

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,128