AgentSkillsCN

LoggedWebSearchPlus

通过DuckDuckGo搜索,跟随结果链接,从每个链接的HTML页面提取约200字内容,并将查询、链接、片段与页面摘要记录至datastore。适用于用户要求获取网页搜索结果及每页结果的简短内容时。

SKILL.md
--- frontmatter
name: LoggedWebSearchPlus
description: Search DuckDuckGo, follow result links, extract about 200 words from each linked HTML page, and log query, links, snippets, and page summaries to datastore. Use when the user asks for web search results plus short content from each result page.
metadata: {"openclaw":{"requires":{"bins":["python","python3"]},"os":["win32","linux","darwin"]}}

LoggedWebSearchPlus

Search DuckDuckGo and enrich each result with extracted text from the linked page.

Execution

python logged_web_search_plus.py --query <search_query> --max <number> --timeout <seconds> --page-timeout <seconds> --words <number> --sleep-ms <milliseconds>

Arguments

  • --query required search query
  • --max optional default 8 range 1 to 25
  • --timeout optional default 20 range 5 to 60
  • --page-timeout optional default 15 range 5 to 60
  • --words optional default 200 range 80 to 400
  • --sleep-ms optional default 0

Output

On success returns JSON with query, count, results, log_path, status. Each result includes title, url, snippet, rank, page_summary, page_words, page_status.

On error returns JSON with query, error, results, count, status.

Logging

Writes to: {OPENCLAW_OUTPUT_ROOT}/datastore/YYYY/MM/DD/{QueryName}.txt

Each run appends query, timestamp, title, URL, DuckDuckGo snippet, and linked page summary text.

If OPENCLAW_OUTPUT_ROOT is not set, default is ~/.openclaw/data.