← 返回
效率工具 中文

curl-search

Web search using curl + multiple search engines (Baidu, Google, Bing, DuckDuckGo). Activates when user asks to search, look up, or query something online. In...
使用 curl 调用百度、谷歌、必应、DuckDuckGo 等多引擎进行网页搜索。当用户请求在线搜索或查询时触发。在...
bluejoy34
效率工具 clawhub v2.0.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 578
下载
💾 24
安装
1
版本
#latest

概述

Curl Search Skill

Web search using curl + multiple search engines. This skill provides a lightweight alternative when dedicated search APIs are unavailable.

Supported Search Engines

EngineAliasDescription
----------------------------
BaidubdFast for China, default option
GooglegRequires proxy/VPN in China
BingbMicrosoft Bing
DuckDuckGoddgPrivacy-focused search

Usage Examples

Search for OpenClaw tutorial
Google search AI development
Find Python tutorials with bing

Requirements

  • curl - Command-line HTTP client
  • python3 - For URL encoding

Security Features

This skill includes several security enhancements:

1. Input Sanitization

Removes dangerous shell metacharacters that could be exploited:

sanitize_input() {
    local input="$1"
    echo "$input" | sed 's/[^a-zA-Z0-9 \_\-\.\~\x{4e00}-\x{9fff}]//g'
}

2. Command Injection Protection

  • Validates search engine selection
  • Restricts max results to 1-50
  • Checks for empty input after sanitization

3. URL Encoding

Uses Python's urllib.parse with safe='' parameter to properly encode special characters.

Installation

# Install via ClawHub
clawhub install curl-search

# Or manually
cd your-skills-dir
tar -xzf curl-search.tar.gz

Configuration

Set default search engine:

export SEARCH_ENGINE=google

Set max results:

export MAX_RESULTS=5

Limitations

  • Search results come from public search engines
  • May be blocked by anti-scraping measures
  • Google requires proxy/VPN in China

Version History

  • 2.0.0 - Security enhancements added
  • Input sanitization
  • Command injection protection
  • URL encoding improvements
  • 1.0.0 - Initial release

版本历史

共 1 个版本

  • v2.0.0 当前
    2026-03-29 22:54 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,962
productivity

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 433 📥 103,861
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 446 📥 226,454