New to Claude Skills? Learn how to install them →

browser-act on GitHub

WeChat Article Search API

Free

Automate extraction of WeChat articles for research and monitoring.

by browser-act5.3k stars on browser-act/skills
2 views
Updated Aug 5, 2026
Get this skill

Free · Opens the source repo

What WeChat Article Search API does

The WeChat Article Search API skill enables users to extract complete articles from WeChat using the BrowserAct API. By simply providing search keywords and optional date filters, users can retrieve structured data that includes full article text, publication dates, authors, and more. This skill is particularly useful for media researchers, PR professionals, and anyone interested in tracking trends or competitor activities within WeChat's ecosystem.

This skill is designed to address common challenges faced when trying to gather content from WeChat, such as dealing with CAPTCHA, IP restrictions, and the high costs associated with AI-driven data extraction methods. By leveraging the BrowserAct API, users can avoid these hurdles and obtain accurate, real-time data without the risk of hallucinations or incorrect information that can occur with AI models.

The API allows for flexible querying, enabling users to specify keywords and limit the number of articles returned. This makes it suitable for both quick searches and more extensive data collection efforts. The output is structured and includes essential details, making it easy to integrate into research workflows or reporting systems.

Overall, this skill is an efficient solution for anyone looking to automate the extraction of WeChat content, whether for academic research, competitive analysis, or media monitoring. It streamlines the process of gathering valuable insights from one of the largest social media platforms in China.

When to use it

Use this skill when you need to extract full articles from WeChat based on specific keywords or when monitoring industry trends and competitor activities.

When not to use it

This skill may not be suitable for users who require real-time scraping of WeChat content without using the BrowserAct API, or for those needing features outside of article extraction.

What you can build with it

Content Monitoring

Track mentions of specific brands or topics across WeChat articles to stay informed.

Media Research

Analyze and extract full texts of articles published by prominent WeChat accounts for deeper insights.

Competitor Analysis

Review and monitor full-length posts from competitor accounts to understand their strategies.

How to install WeChat Article Search API

View source

1. Install with the skills CLI

npx skills add browser-act/skills/wechat-article-search-api-skill --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by browser-act

WeChat Article Search API

📖 Introduction

This skill provides users with automated WeChat article extraction through the BrowserAct WeChat Article Search API template. It allows for the direct extraction of full-content, structured WeChat articles based on keyword searches. Simply provide search keywords and optional date filters, and you can obtain comprehensive article data including the full body text.

✨ Features

  1. No hallucinations, ensuring stable and precise data extraction: Pre-configured workflows avoid AI-generated hallucinations.
  2. No CAPTCHA issues: No need to handle reCAPTCHA or other verification challenges.
  3. No IP restrictions or geo-blocking: No need to handle regional IP limitations.
  4. Faster execution: Task execution is faster compared to pure AI-driven browser automation solutions.
  5. Extremely high cost-effectiveness: Significantly reduces data acquisition costs compared to AI solutions that consume a large number of tokens.

🔑 API Key Guidance Flow

Before running, check the BROWSERACT_API_KEY environment variable. If not set, do not take other actions; request and wait for the user to provide it. The Agent must inform the user:

"Since you have not configured the BrowserAct API Key, please go to the BrowserAct Console to get your Key."

🛠️ Input Parameters

When invoking the script, the Agent should flexibly configure the following parameters based on user needs:

  1. keywords (Search Keywords)

    • Type: string
    • Description: Search keywords used to find WeChat articles. Can be an industry term, topic, or specific phrase.
    • Example: openclaw, AI agent, browser automation
  2. Date_limit (Extraction Limit)

    • Type: number
    • Description: Maximum number of articles to extract. For the first run, a smaller default value is recommended.
    • Default Value: 10
    • Suggestions: Use 5 to 10 for quick testing, larger numbers for batch research.
  3. publication_date (Publication Date Filter)

    • Type: string
    • Description: Filter articles by their publication date.
    • Example: 3月11日, March 10, 2026-03-11

🚀 Invocation Method

The Agent should execute the following independent script to achieve "one command, direct results":

# Example invocation
python -u ./scripts/wechat_article_search_api.py "keywords" limit "publication_date"

⏳ Run Status Monitoring

Because this task involves automated browser operations, it may take a long time (several minutes). While running, the script will continuously output timestamped status logs (e.g., [14:30:05] Task Status: running). Agent Instructions:

  • Keep monitoring the terminal output while waiting for the script to return results.
  • As long as the terminal continues to output new status logs, it means the task is running normally; do not misjudge it as deadlocked or unresponsive.
  • Only consider triggering the retry mechanism if the status remains unchanged for a long time, or the script stops outputting without returning results.

📊 Output Data Explanation

Upon successful execution, the script will parse and print the results directly from the API response. The results include:

  • url_link: Original article URL
  • publication_date: Article publication date
  • author: Article author or publishing account name
  • image_url: Main image URL or article cover image URL
  • body_content: Full body content of the article
  • title: Full article title

⚠️ Error Handling & Retry

During script execution, if an error occurs (such as network fluctuation or task failure), the Agent should follow this logic:

  1. Check the output content:

    • If the output contains "Invalid authorization", it means the API Key is invalid or expired. In this case, do not retry; guide the user to re-check and provide the correct API Key.
    • If the output does not contain "Invalid authorization" but the task fails (e.g., output starts with Error: or returns an empty result), the Agent should automatically try to execute the script one more time.
  2. Retry limit:

    • Automatic retry is limited to once. If the second attempt still fails, stop retrying and report the specific error message to the user.

🌟 Typical Use Cases

  1. Content Monitoring: Track mentions of specific brands or topics across WeChat articles.
  2. Media Research: Analyze full text of articles published by top WeChat accounts.
  3. Trend Tracking: Collect articles about rising industry trends (e.g., AI agents) for comprehensive reading.
  4. Knowledge Base Building: Extract deep-dive articles into an internal repository.
  5. Competitor Analysis: Review full-length posts released by competitor accounts.

Frequently asked questions about WeChat Article Search API

Similar skills