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.
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."
When invoking the script, the Agent should flexibly configure the following parameters based on user needs:
string
openclaw, AI agent, browser automation
number
10
5 to 10 for quick testing, larger numbers for batch research.
string
3月11日, March 10, 2026-03-11
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"
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:
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
During script execution, if an error occurs (such as network fluctuation or task failure), the Agent should follow this logic:
"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.
"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.
共 1 个版本