当前位置: 首页 > Skill >

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

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

1.0.0 2026.11.23 浏览:855
获取Skill文件查看使用说明
作者:陈景许可证:
本文目录展开

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

相关文章

更多
PHP实现深度优先搜索算法(DFS,Depth First Search)详解

本文介绍PHP语言中深度优先搜索(DFS)算法的具体实现方法。深度优先搜索是一种用于遍历或搜索树或图的算法,其核心思想是沿着一条路径尽可能深地探索,直到无法继续为止,然后回溯到上一个节点尝试其他分支。通过PHP代码示例,展示如何构建递归逻辑以完成图的遍历操作,并分析其输出结果的结构特征。

2026.11.09 767
Skill 文件
  • SKILL.md
    • SearXNG Search
    • Quick Start
    • Common Workflows
      • Basic Web Search
      • News Search
      • Localized Search
      • Multi-Category Search
      • Bang Searches (Direct Engine)
    • Privacy Features
    • When to Use
    • Processing Results
    • Advanced Options
    • Configuration
      • SearXNG Instance
      • Using Public Instances
    • Technical Details
  • 项目或源文件

相关 Skill

更多
anydocs - Generic Documentation Indexing & Search anydocs - Generic Documentation Indexing & Search 通用文档索引与搜索。快速为任意文档站点(SPA/静态)建索引,实现即时搜索。
Filed — US Business Entity Search Filed — US Business Entity Search 搜索并获取美国商业实体(有限责任公司、公司、合伙企业)的官方州务卿记录,使用 Filed.dev API,仅在需要查询时使用。
Data Privacy & Protection Program Data Privacy & Protection Program 制定并审计涵盖GDPR、CCPA/CPRA、LGPD、POPIA、PIPL的全面数据隐私计划,包括数据映射、泄露响应及同意管理。
Jina AI - Web Reader, Search and Deep Search Jina AI - Web Reader, Search and Deep Search 通过 Jina AI API 实现网页读取和搜索,可从 URL (r.jina.ai) 提取干净 Markdown、进行网络搜索 (s.jina.ai) 或深度多步研究 (DeepSearch)。
BlindOracle - Privacy-First Agent Infrastructure BlindOracle - Privacy-First Agent Infrastructure 隐私优先的代理基础设施,提供安全预测市场、去中心化凭证验证、多轨道结算及跨轨道微支付服务。