Skip to content
Skillv1.0.0

web-search

通用网络搜索技能,支持多引擎搜索(百度、必应、DuckDuckGo),无需API密钥即可获取实时信息

by yejinlei(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from yejinlei/web-search-skill (SKILL.md) via skills.sh. Install upstream with npx skills add yejinlei/web-search-skill. Copyright stays with the author (MIT).

Web Search Skill

A powerful web search skill supporting multiple search engines without requiring API keys.

Features

  • 🔍 Multi-Engine Support: Baidu (Playwright), Bing, DuckDuckGo
  • 🌐 No API Key Required: Uses browser automation and web scraping
  • 🔄 Smart Fallback: Automatically switches engines when one fails
  • 📊 Structured Results: Returns clean search results with title, URL, and snippet
  • 🚀 High Performance: Async support with Playwright browser automation

Usage

Basic Search

result = main({
    "action": "search",
    "query": "Python tutorial",
    "num_results": 5
})

Deep Search

result = main({
    "action": "deep_search",
    "query": "machine learning latest research",
    "num_results": 5
})

Web Page Crawling

result = main({
    "action": "crawl",
    "url": "https://example.com"
})

Input Parameters

Parameter Type Required Description
action string Yes Operation type: "search", "deep_search", or "crawl"
query string Conditional Search query (required for search/deep_search)
url string Conditional Target URL (required for crawl)
num_results int No Number of results, default 5, max 20
region string No Region code, default 'cn-zh'

Output Format

Search Result

{
    "success": True,
    "query": "search query",
    "engine": "baidu+playwright",
    "num_results": 5,
    "results": [
        {
            "title": "Result title",
            "href": "https://...",
            "body": "Snippet content"
        }
    ],
    "message": "Search completed"
}

Deep Search Result

{
    "success": True,
    "query": "search query",
    "search_results": [...],
    "detailed_info": {
        "extracted_content": "..."
    },
    "message": "Deep search completed"
}

Execution

type: script script_path: scripts/web_search.py entry_point: main dependencies:

  • uv>=0.1.0
  • requests>=2.28.0
  • baidusearch>=1.0.3
  • crawl4ai>=0.8.0
  • playwright>=1.40.0

Search Strategy

  1. Primary: baidusearch library (fastest, no browser)
  2. Secondary: Playwright + Baidu (most reliable, bypasses anti-bot)
  3. Tertiary: DuckDuckGo (privacy-focused)
  4. Fallback: Bing (international)

Notes

  1. First Run: Playwright will download Chromium browser on first use (~100MB)
  2. Rate Limiting: Be mindful of search frequency to avoid temporary blocks
  3. Network: Requires internet connection
  4. Results: May vary based on search engine algorithms and location

Error Handling

  • Returns {"success": False, "message": "..."} on errors
  • Automatically retries with fallback engines
  • Graceful degradation when optional dependencies are missing

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/yejinlei-web-search-skill-web-search/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

yejinlei-web-search-skill-web-search.ocm.jsonjson
{
  "ocm": "1",
  "id": "yejinlei-web-search-skill-web-search",
  "kind": "skill",
  "name": "web-search",
  "description": "通用网络搜索技能,支持多引擎搜索(百度、必应、DuckDuckGo),无需API密钥即可获取实时信息",
  "publisher": "yejinlei",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "search",
      "web",
      "internet",
      "baidu",
      "bing",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "通用网络搜索技能,支持多引擎搜索(百度、必应、DuckDuckGo),无需API密钥即可获取实时信息"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/yejinlei/web-search-skill",
      "path": "SKILL.md",
      "ref": "HEAD",
      "url": "https://www.skills.sh/yejinlei/web-search-skill/web-search",
      "key": "yejinlei/web-search-skill/SKILL.md"
    },
    "license": "MIT"
  },
  "instructions": "# Web Search Skill\n\nA powerful web search skill supporting multiple search engines without requiring API keys.\n\n## Features\n\n- 🔍 **Multi-Engine Support**: Baidu (Playwright), Bing, DuckDuckGo\n- 🌐 **No API Key Required**: Uses browser automation and web scraping\n- 🔄 **Smart Fallback**: Automatically switches engines when one fails\n- 📊 **Structured Results**: Returns clean search results with title, URL, and snippet\n- 🚀 **High Performance**: Async support with Playwright browser automation\n\n## Usage\n\n### Basic Search\n\n```python\nresult = main({\n    \"action\": \"search\",\n    \"query\": \"Python tutoria",
  "cost": {
    "context_tokens": 714
  }
}

Fetch it by URL: GET /api/v1/registry/yejinlei-web-search-skill-web-search/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.

web-search - Skill - OpenSmartRoute