wechat-search

Search WeChat Official Account articles using OpenClaw's web search, Tavily API, and web fetch capabilities with compliance-focused design.

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 "wechat-search" with this command: npx skills add jixsonwang/wechat-search

WeChat Search Skill

Search for WeChat Official Account (微信公众号) articles using a compliant, three-layer approach that prioritizes legal search APIs and falls back to respectful web scraping when needed.

Features

  • Compliant Design: Prioritizes legal search APIs, respects robots.txt and rate limits
  • Three-Layer Strategy:
    • Primary: OpenClaw web_search (Brave Search API)
    • Secondary: Tavily Search API (if Brave unavailable)
    • Fallback: Direct page fetching from WeChat search
  • Recent Results: Returns the 5 most recent articles by default (configurable)
  • Time Filtering: Support for date range and recency filters
  • Multiple Output Formats: Text, JSON, and markdown formats available

Prerequisites

  • OpenClaw Web Tools: Requires web_search, web_fetch tools to be available
  • API Keys (optional but recommended):
    • Brave Search API Key (for primary search)
    • Tavily API Key (for secondary search, already configured in your environment)

Usage

Basic Search

wechat-search "人工智能"

Advanced Options

# Return 10 results instead of default 5
wechat-search "机器学习" --max-results 10

# Search within past week
wechat-search "大模型" --past-week

# Custom date range
wechat-search "AI应用" --from 2026-01-01 --to 2026-02-01

# JSON output format
wechat-search "开源AI" --output json

# Force specific strategy
wechat-search "最新技术" --strategy tavily_only

Configuration

Create ~/.openclaw/wechat-search-config.json to customize behavior:

{
  "defaultMaxResults": 5,
  "maxResultsLimit": 20,
  "requestDelayMs": 5000,
  "cacheDurationHours": 1,
  "userAgent": "OpenClaw-WeChat-Search-Bot/1.0 (+https://github.com/your-username/wechat-search-skill)"
}

Search Strategy Details

Layer 1: OpenClaw Web Search (Brave Search)

  • Uses Brave Search API with site:mp.weixin.qq.com filter
  • Fastest and most reliable when API key is configured
  • Respects search engine's indexing and ranking

Layer 2: Tavily Search API

  • Activated when Brave Search is unavailable or fails
  • Uses Tavily's AI-powered search with WeChat site restriction
  • Provides high-quality, relevant results with good coverage

Layer 3: Direct Web Fetch

  • Final fallback when both APIs are unavailable
  • Scrapes WeChat search results directly from搜狗微信搜索
  • Implements proper delays and respects robots.txt
  • Parses HTML to extract article metadata

Compliance & Ethics

  • Respects robots.txt: Checks and follows robots.txt directives
  • Rate limiting: Minimum 5-second delay between requests
  • Transparent identification: Clear User-Agent string identifying the bot
  • Public content only: Only accesses publicly available articles
  • No data retention: Does not store full article content, only metadata

Error Handling

  • Automatic retry on network failures (up to 3 attempts)
  • Graceful fallback between all three search strategies
  • Clear error messages for debugging
  • Handles API key missing scenarios gracefully

Future Enhancements

  • RSS feed integration support
  • Article content summarization
  • Author/subscription management
  • Enhanced filtering options

This skill is designed to be both useful and responsible, providing access to valuable WeChat Official Account content while respecting platform rules and legal requirements.

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

Eyes

全球热点事件监控与影响分析。覆盖战争冲突、地缘摩擦、重大政策、疫情、自然灾害、创新技术等可能影响经济、市场和投资的事件,并按行业、汇率、大宗商品链路分析影响。也用于 Cron 定时推送热点摘要(早8点开盘前瞻/晚8点收盘复盘/整点扫描)。

Registry SourceRecently Updated
General

关键词监控系统

关键词监控与内容采集自动化 — 多关键词并行监控、全网爆款内容自动抓取,每日生成结构化报告推送到飞书群。适用于内容运营、竞品监控、热点追踪、线索收集等场景。

Registry SourceRecently Updated
General

Founder Signal

Founder Signal turns verified Reddit evidence into a small, reviewable signal package for founders evaluating product demand and positioning across one or mo...

Registry SourceRecently Updated
General

Bitcoin Identity

Read-only-by-default integration guide for HODLXXI / UBID Bitcoin-native identity discovery, OAuth2/OIDC metadata, LNURL-Auth boundaries, JWT verification gu...

Registry SourceRecently Updated
1.6K1hodlxxi