Langextract Search

v0.1.5

集成智谱搜索、DuckDuckGo 搜索和多模型结构化提取的完整工作流。

0· 486·1 current·1 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for luw2007/langextract-search.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Langextract Search" (luw2007/langextract-search) from ClawHub.
Skill page: https://clawhub.ai/luw2007/langextract-search
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Canonical install target

openclaw skills install luw2007/langextract-search

ClawHub CLI

Package manager switcher

npx clawhub@latest install langextract-search
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
名称与描述匹配其行为:整合智谱搜索、DuckDuckGo 和 langextract 结构化提取。包含的脚本实现了这些功能(zhipu + ddgs + langextract)。没有发现与描述完全无关的网络/云服务调用。
Instruction Scope
SKILL.md 的运行指令与代码行为基本一致:安装 requests/ddgs/langextract,运行 scripts/search.py,配置 conf.json。文档说明会读取/写入项目 conf.json 并提示首次配置,这与脚本中对 conf.json 的读/写逻辑一致。未看到脚本在说明之外访问主机上不相关的敏感路径或任意上传到未知第三方的步骤。
Install Mechanism
没有 install spec;代码随包提供,运行时依赖由用户通过 pip 安装(requests、ddgs、langextract、zai-sdk/openai 等)。没有通过不可信的远程 URL 下载并执行二进制的高风险安装步骤。
!
Credentials
conf.json 包含多种 apiKey/botId/baseUrl 字段(智谱、火山引擎/volcengine、langextract/backends 等),脚本的 resolve_api_key 会尝试从环境变量中解析这些值。尽管 SKILL.md/registry 元数据未声明任何 required env vars,该技能实际上需要/使用多种外部服务凭据。未声明的凭据需求和默认配置将鼓励用户在项目 conf.json 中放置显式键名(增加凭据泄露风险)。
Persistence & Privilege
技能没有设置 always: true,也没有请求修改其他技能或系统范围的配置。首次运行会在项目目录写入/更新 conf.json(文档已提及),这是合理且与其功能相关。
What to consider before installing
这项技能确实能做它宣称的事情(整合智谱/ DuckDuckGo 与 langextract),但注意: - conf.json 中包含多个 apiKey 占位符(ZHIPU_SEARCH_API_KEY、VOLCENGINE_API_KEY 等)。该脚本会尝试从 conf.json 的字符串或对应的环境变量读取这些密钥,但 SKILL 元数据没有声明需要哪些环境变量。安装前请不要把真实凭据直接写入项目文件。优先通过操作系统环境变量注入密钥,并确认 conf.json 不包含明文密钥。 - 在使用前检查并理解 conf.json 的所有键,确认你只提供必要服务的凭据(例如只启用 DuckDuckGo 时不需要智谱/火山引擎的密钥)。 - 仔细审阅 scripts/search.py 和 langextract_wrap.py(它们会使用 openai/zai-sdk/langextract 等客户端),并在隔离环境或受控网络中首次运行以观察对外请求的目的地(这些请求会发往智谱、火山引擎或其他后端)。 - 如不需要某些后端,禁用相应 conf.json 节点(enabled: false)。避免将敏感凭据提交到共享代码库。若需要,我可以帮助你定位 conf.json 中哪些字段必须提供密钥,以及如何以更安全的方式注入凭据。

Like a lobster shell, security has layers — review code before you run it.

latestvk9797r8j00djhy87w2ba7hjvhd81zsf8
486downloads
0stars
6versions
Updated 1mo ago
v0.1.5
MIT-0

LangExtract Search Skill

集成智谱搜索 + DuckDuckGo 搜索 + 多模型结构化提取的完整工作流。

功能特性

  • 🔍 智谱 AI 搜索: 使用智谱 zai-sdk 进行网络搜索
  • 🌐 DuckDuckGo 搜索: 备用搜索引擎(支持多后端:Bing/Google/Brave 等)
  • 📝 多模型提取: 支持 OpenAI 通用协议
  • 🔄 完整工作流: 搜索 → 提取 → 保存,一键完成
  • ⚙️ 灵活配置: 支持时间过滤、地区设置、代理等高级参数

前置条件

  1. Python 3.8+
  2. ddgs(DuckDuckGo 搜索库)
  3. requests(HTTP 请求库)
  4. 可选:配置 langextract 处理模型

安装

pip install requests ddgs langextract

参考 conf.json.example 配置模型

首次使用交互选择

如果未在 openclaw.json 中配置 baseUrl,首次运行时会自动提示选择套餐类型,选择结果保存到项目 conf.json 文件中。

快速开始

cd scripts
python search.py "搜索关键词" --verbose

使用方法

基本用法

python search.py "搜索关键词"

验证输入输出(详细模式)

python search.py "搜索关键词" --verbose

保存完整 JSON

python search.py "搜索关键词" --save-json

自定义 DuckDuckGo 结果数量

python search.py "搜索关键词" --ddg-max-results 30

所有选项

python search.py --help

搜索配置

搜索参数通过 conf.json 配置。默认配置开箱即用,无需额外设置。

默认配置(自动应用)

搜索引擎默认结果数时间过滤其他
智谱搜索15 条不限search_pro 引擎
DuckDuckGo20 条不限自动选择后端

自定义配置

当默认配置不满足需求时(如需要时间过滤、地区设置、代理等),请参阅 references/search-params.md 获取完整参数说明。

常见自定义场景:

  • 搜索最近一周/一月的内容:设置 timelimit: "week""month"
  • 限定搜索地区:设置 region: "cn-zh""us-en"
  • 使用代理访问:设置 proxy: "http://127.0.0.1:7890"
  • 切换搜索后端:设置 backend: "google""bing,google"

更多信息

工作流详细说明、输出文件格式和故障排除,请参阅 references/workflow-details.md

Comments

Loading comments...