langextract-search

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

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "langextract-search" with this command: npx skills add luw2007/langextract-search

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Zoom

Zoom API integration with managed OAuth. Manage meetings, webinars, recordings, and user profiles. Use this skill when users want to schedule meetings, manag...

Registry SourceRecently Updated
General

Kleinanzeigen.de Helper

Erstelle und verwalte Verkaufsanzeigen speziell auf kleinanzeigen.de. Verwende diesen Skill wenn der Human sagt, er will etwas auf kleinanzeigen.de verkaufen...

Registry SourceRecently Updated
General

Poku

Sends and receives phone calls and messages (like SMS, WhatsApp, Slack), and reserves dedicated phone numbers using the Poku API. Example use cases: calling...

Registry SourceRecently Updated
General

IMAP/SMTP Email - Maddy Fix

Read and send email via IMAP/SMTP. Check for new/unread messages, fetch content, search mailboxes, mark as read/unread, and send emails with attachments. Sup...

Registry SourceRecently Updated