360 Secure SkillHub
360 安全技能中心

Pure Search

一个免 API key 的轻量网页搜索 Skill:调用 DuckDuckGo 获取前 N 条链接,再用 Trafilatura 抽取网页正文为干净 Markdown,以结构化 JSON 返回标题、地址与正文,便于 Agent 直接消费。依赖 Python 及 pip 安装的两个第三方库,无其他配置项。

分类:搜索
cyecho-io
cyecho-io
热度 34.83
最近更新 2026-05-11 17:29:59

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add cyecho-io/pure-search
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
pure-search
version
1.0.0
description
A lightweight, API-key-free web search skill based on DuckDuckGo and Trafilatura. Returns highly relevant URLs and clean markdown content.
metadata
{"openclaw":{"emoji":"🔍","category":"search"},"acceptLicenseTerms":true}
acceptLicenseTerms
true

Pure Search 🔍

A lightweight, robust search skill that requires NO API keys. It uses DuckDuckGo for link retrieval and trafilatura for clean, high-quality markdown extraction.

How It Works

  1. Queries DuckDuckGo for top N links (bypassing commercial API restrictions).
  2. Uses trafilatura to extract only the main content of the web pages, stripping out all navigation bars, footers, sidebars, and ads.
  3. Returns JSON output with search results, containing the title, URL, and the clean markdown body.

Setup

First, make sure the dependencies are installed:

pip install duckduckgo-search trafilatura

Quick Start

# Basic search (Default fetches top 3 results)
./scripts/search.py "Rust vs Go in 2026"

# Advanced search with more results
./scripts/search.py "Latest AI trends" --max-results 5

Output Format

The output is always in a structured JSON format, making it extremely easy for agents to digest:

{
  "query": "Rust vs Go in 2026",
  "results": [
    {
      "title": "A detailed comparison...",
      "url": "https://example.com/article",
      "markdown_content": "## Performance\n... (Pure clean text)"
    }
  ],
  "errors": []
}

Why Pure Search?

  • Zero configuration: Start using without registering tokens.
  • Extreme simplicity: Only one Python script, following the KISS principle.
  • Token friendly: Only sends clean Markdown to the LLM agent, avoiding HTML tags and saving context window limits.