web-search

yejinlei/web-search-skill · updated Apr 8, 2026

$npx skills add https://github.com/yejinlei/web-search-skill --skill web-search
0 commentsdiscussion
summary

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

skill.md

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

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.451 reviews
  • Pratham Ware· Dec 28, 2024

    Solid pick for teams standardizing on skills: web-search is focused, and the summary matches what you get after install.

  • Advait Mensah· Dec 28, 2024

    web-search has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Henry Harris· Dec 28, 2024

    Keeps context tight: web-search is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Kiara Mensah· Dec 8, 2024

    We added web-search from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Meera Agarwal· Dec 4, 2024

    web-search reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Ama Patel· Nov 27, 2024

    Solid pick for teams standardizing on skills: web-search is focused, and the summary matches what you get after install.

  • Ama Park· Nov 23, 2024

    I recommend web-search for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Yash Thakker· Nov 19, 2024

    We added web-search from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Anaya Sethi· Nov 19, 2024

    web-search fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Kiara Gonzalez· Nov 7, 2024

    web-search is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

showing 1-10 of 51

1 / 6