360 Secure SkillHub
360 安全技能中心

Min Web Search

提供 Python、Shell 和 Windows PowerShell 三种实现,调用 Bing 公共 RSS 接口执行单次网页搜索。默认输出可读文本,也支持 JSON;无 API 密钥和第三方包要求,但依赖网络访问,结果数量有限且无分页。

cute-omega
cute-omega
热度 11.07
最近更新 2026-08-06 15:33:35
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add min-web-search-skill
Metadata
name
min-web-search
description
Minimal cross-platform web search via Bing RSS — no API key, no dependencies beyond Python 3.8+ or curl.
version
1.1.0
author
Hermes Agent
license
MIT
metadata
{"hermes":{"tags":["web","search","bing","cross-platform","minimal"],"related_skills":[]}}

min-web-search

Minimal web search using Bing's public RSS endpoint. No API key, no third-party packages, no Docker.

When to Use

Use this skill when the user asks you to search the web and the built-in web_search tool is unavailable (e.g. no API key configured, or the configured backend is unreachable).

How It Works

Queries www.bing.com/search?q=...&format=rss and parses the XML response. The RSS feed returns titles, URLs, and snippets — everything needed for a basic web search.

Usage

Python — recommended

# Requires: Python 3.8+ (standard library only)
python3 scripts/search.py "your query"
python3 scripts/search.py "your query" --max 3
python3 scripts/search.py "your query" --json

Shell — fallback when Python is unavailable

# Requires: curl (or wget) + sed + grep -oP + awk
./scripts/search.sh "your query"
./scripts/search.sh "your query" --max 3
./scripts/search.sh "your query" --json

Windows PowerShell

# Requires: PowerShell 5.1+ (built into Windows 10+)
.\scripts\search.ps1 "your query"
.\scripts\search.ps1 "your query" -Max 3
.\scripts\search.ps1 "your query" -Json

Which Implementation to Use

Environment Recommended Fallback
Python available search.py search.sh or search.ps1
No Python, Unix-like search.sh —
Windows search.ps1 search.py
Minimal Docker / Alpine search.sh —

Output Format

Human-readable (default):

1. Title of Result
   https://example.com/page
   Snippet text up to 200 chars...

JSON (--json):

{
  "success": true,
  "query": "your query",
  "results": [
    {"title": "...", "url": "...", "snippet": "..."}
  ]
}

Limitations

  • Uses Bing China (www.bing.com) — results may be region-biased
  • RSS endpoint returns ~10 results max per query, no pagination
  • Rate limiting may apply under heavy use
  • grep -oP in the shell version requires GNU grep (macOS: brew install grep)

Common Pitfalls

  • On some networks www.bing.com may be slow; www.bing.com is an alternative
  • The RSS feed occasionally returns empty results for very niche queries
  • PowerShell 5.1+ is required on Windows (ships with Windows 10+)

Verification Checklist

  • Script runs without errors on target platform
  • Returns valid JSON with --json flag
  • Human-readable output shows title, URL, snippet
  • Handles network errors gracefully (returns {"success": false, ...})