360 Secure SkillHub
360 安全技能中心

Local Web Search

免 API Key 的本地网页搜索:运行 Python 脚本抓取 DuckDuckGo HTML 结果,支持重试与指数退避,对来源做可信度分级,并以结构化 JSON 输出,便于接入管道。

mes28io
mes28io
热度 96.14
最近更新 2026-05-11 17:26:52
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究 / 数据处理

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add local-web-search-skill
Metadata
name
local-web-search
description
Free local web search via DuckDuckGo HTML scraping with no API key. Use when web_search tool is unavailable or missing API keys, and you need fast query results with source trust scoring, retry/backoff handling, and JSON output suitable for pipelines.

Local Web Search

Run local search without paid APIs.

Command

./skills/local-web-search/scripts/local_search.py "<query>" --max 8

Output

Returns JSON with:

  • query
  • count
  • disclaimer
  • security
  • results[] {title, url, snippet, trust{score,tier,reason}}

Trust Scoring

  • high: docs/papers/.gov/.edu/authoritative domains
  • medium: reputable publications/default domains
  • low: user-generated platforms (e.g., dev.to, medium, substack)

Use trust score for ranking/filtering only; always verify key claims with primary sources.

Security

  • No environment/token exfiltration
  • No external writes
  • Outbound HTTPS GET only to search endpoint

Reliability

  • Handles transient errors with exponential backoff + jitter
  • Public scraping behavior can change; parser may need updates