← 返回
数据分析 中文

Easy Search

Simple web search using multiple search engines with no API key required. Supports Google, Bing, DuckDuckGo, Baidu, Sogou, 360, Brave, Yandex. Features time...
使用多个搜索引擎的简单网页搜索,无需API密钥。支持Google、Bing、DuckDuckGo、Baidu、Sogou、360、Brave、Yandex。功能...
hkall
数据分析 clawhub v1.0.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 923
下载
💾 16
安装
2
版本
#latest

概述

Easy Search Skill

A powerful web search skill that doesn't require API keys. It uses direct HTTP requests and the duckduckgo_search library for reliable results.

Features

  • No API key required - Uses public search interfaces
  • 9 search engines - Google, Bing, DuckDuckGo, Baidu, Sogou, 360, Brave, Yandex, Startpage
  • Auto engine selection - Automatically picks the best available engine
  • Snippet extraction - Get result previews, not just titles
  • Time filtering - Filter by day/week/month/year
  • Interactive mode - Continuous searching with live engine switching
  • Network diagnostics - Built-in connectivity checking and proxy hints
  • Proxy support - Respects ALL_PROXY, HTTPS_PROXY environment variables
  • Result caching - Faster repeated searches
  • Smart failover - Auto-switches to backup engines on failure

Requirements

  • Python 3.6+
  • Optional: pip install duckduckgo-search requests for better results

Commands

Basic Search

# Simple search (positional argument)
python3 {baseDir}/scripts/search.py Python tutorial

# With flag
python3 {baseDir}/scripts/search.py --query "your search terms"

# Specify engine
python3 {baseDir}/scripts/search.py "AI news" --engine bing

# More results
python3 {baseDir}/scripts/search.py "React hooks" --results 10

# JSON output (default)
python3 {baseDir}/scripts/search.py "Vue.js" --format json

# Markdown output
python3 {baseDir}/scripts/search.py "machine learning" --format md

# Simple output (quick reading)
python3 {baseDir}/scripts/search.py "Docker" --format simple

# CSV output
python3 {baseDir}/scripts/search.py "Kubernetes" --format csv

Time Filtering

# News from last 24 hours
python3 {baseDir}/scripts/search.py "AI news" --time day

# Results from last week
python3 {baseDir}/scripts/search.py "React 19" --time week

# Results from last month
python3 {baseDir}/scripts/search.py "Python 3.13" --time month

# Results from last year
python3 {baseDir}/scripts/search.py "best laptops 2024" --time year

Interactive Mode

# Start interactive mode
python3 {baseDir}/scripts/search.py --interactive

# In interactive mode:
# [auto]> Python tutorial          # Search with auto engine
# [auto]> :engine duckduckgo       # Change engine
# [duckduckgo]> React hooks        # Search with new engine
# [duckduckgo]> :format simple     # Change output format
# [duckduckgo]> :check             # Check engine health
# [duckduckgo]> :quit              # Exit

Network Diagnostics

# Run network diagnostics
python3 {baseDir}/scripts/search.py --diagnose

# Check which engines are available
python3 {baseDir}/scripts/search.py --check-engines

Engine Management

# Clear cache
python3 {baseDir}/scripts/search.py --clear-cache

# Disable auto-fallback (stay on specified engine)
python3 {baseDir}/scripts/search.py "query" --engine google --no-fallback

Search Engines

EngineBest ForNotes
-------------------------
autoGeneral useAuto-selects best available engine
startpagePrivacy, globalPrivacy-focused, reliable HTML parsing
duckduckgoPrivacy, globalPreferred, uses library if installed
bingGlobal searchGood reliability, decent snippets
googleBest resultsMay need proxy in some regions
baiduChinese contentStrong anti-crawl measures
sogouChinese contentGood alternative to Baidu
so360Chinese contentAnother Chinese option
bravePrivacy-focusedGrowing index
yandexRussian/GlobalWorks in some regions

Output Formats

JSON

{
  "query": "search terms",
  "engine": "bing",
  "method": "HTML scraping",
  "results": [
    {
      "title": "Result Title",
      "url": "https://example.com",
      "snippet": "Brief description..."
    }
  ],
  "total": 5
}

Markdown

## Search Results: your terms

Engine: **BING**
Method: _HTML scraping_

1. [Result Title](https://example.com)
   > Brief description...

2. [Another Title](https://another.com)
   > More info...

Simple

1. Result Title
   https://example.com
   Brief description...

2. Another Title
   https://another.com
   More info...

Examples

# Quick search for documentation
python3 {baseDir}/scripts/search.py "Python requests library docs"

# Search Chinese content with Sogou
python3 {baseDir}/scripts/search.py "人工智能最新进展" --engine sogou

# Get recent news in markdown format
python3 {baseDir}/scripts/search.py "OpenAI news" --time day --format md

# Use interactive mode for multiple searches
python3 {baseDir}/scripts/search.py -i

# Search with time filter
python3 {baseDir}/scripts/search.py "React 19 features" --time month --results 10

Proxy Configuration

Set environment variables for proxy support:

# Set proxy
export ALL_PROXY="http://127.0.0.1:7890"
export HTTPS_PROXY="http://127.0.0.1:7890"

# Then run search
python3 {baseDir}/scripts/search.py "your query"

Troubleshooting

ProblemSolution
-------------------
Empty resultsTry a different engine with --engine
Connection timeoutCheck proxy settings or use --timeout 60
Rate limitingWait between searches or switch engines
DuckDuckGo slowInstall library: pip install duckduckgo-search
No snippetsSome engines have limited snippet extraction
Google blockedUse proxy or switch to Bing/DuckDuckGo
All engines failRun --diagnose to check network

Tips for Best Results

  1. Use auto engine - Let the tool pick the best available engine
  2. Install dependencies - pip install duckduckgo-search requests for better reliability
  3. Use time filters - For news and recent topics, use --time day or --time week
  4. Try Chinese engines - Use sogou or so360 for Chinese content
  5. Interactive mode - Great for multiple related searches
  6. Cache is your friend - Repeated searches are instant (1 hour cache)
  7. Run diagnostics - Use --diagnose to troubleshoot network issues

Version History

  • v1.1.0 - Added Startpage engine with proper parsing, fixed HTML entity decoding in URLs
  • v1.0.1 - Added network diagnostics, better proxy hints, improved error messages
  • v1.0.0 - Added 4 new engines (Sogou, 360, Brave, Yandex), time filtering, interactive mode, snippet extraction, engine health caching
  • v4.0.0 - Integrated duckduckgo_search library, auto engine selection
  • v1.0.0 - Initial release with basic search

版本历史

共 2 个版本

  • v1.0.1 当前
    2026-03-29 08:55 安全 安全
  • v1.0.0
    2026-03-11 12:04

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,156
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,565
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,076