WeChat Official Account Article Search + Full-Text Extraction: Keyword Retrieval and Body Text Crawling

Introduction

When conducting competitive analysis on official accounts or tracking trending topics, the common approach involves manually searching within WeChat and clicking through articles one by one to copy the text. Since links are often Sogou WeChat intermediate pages, bulk organizing of titles, sources, publication times, and full text is costly. The following introduces the SkillHub community Skill “WeChat Official Account Article Search + Full-text Extraction”: It fetches article lists by keywords within an Agent environment, optionally resolves them to real mp.weixin.qq.com links, and outputs structured fields or complete body text to facilitate subsequent analysis or archiving.

What is this

One-sentence positioning: A WeChat Official Account search and full-text extraction Skill designed for data analysis and content research.

  • Coordinate: @user_bb5d057c/wechat-article-full
  • Version: 1.0.0
  • Source: SkillHub Community (community), Category data-analysis
  • Publisher: user_bb5d057c (Displayed author on SkillHub page: “Mu Huo Tong Ming”)
  • Official Entry: SkillHub Skill Page, API Coordinate Page
  • Tags: Labeled requires_api_key=false, does not rely on additional API Keys.

The Skill is based on the universal SKILL.md format and requires a running environment with node; the script depends on cheerio.

Core Features

The following capabilities are derived from the official SKILL.md and introduction, and have been verified:

  1. Keyword Search: Returns a list of articles based on query terms (title, summary, link, source official account, time, etc.).
  2. Real Link Resolution: By default, resolves Sogou intermediate links to original WeChat links; use --no-resolve to skip this for increased speed (retaining intermediate links).
  3. Full-text Extraction: When -f is added, it scrapes the body text, outputting fullContent containing title, account, publication time, body text, and word count.
  4. Result Persistence: JSON can be written to a specified file via -o.

Applicable intents include: users requesting to “search official account articles for a specific keyword and extract full text,” competitive content analysis, hot topic tracking, and content reference.

Installation and Activation

1. Install SkillHub CLI (if not already installed)

command -v skillhub && skillhub --version

If not installed, follow the SkillHub Installation Instructions:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

2. Install this Skill to the current Agent’s skills directory

When installing, you must use --dir to point to the actual skills path recognized by the Agent; otherwise, defaulting to ./skills/ may prevent loading. Common paths (excerpted from official installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Example (replace <skills directory> with your environment path):

skillhub install @user_bb5d057c/wechat-article-full --dir <skills directory>

You can also ask the AI in the conversation to install it according to the official prompt:

Please install `@user_bb5d057c/wechat-article-full` based on https://skillhub.cn/install/skillhub.md.

3. Install script dependencies

Enter the skill directory (SKILL_DIR is the parent directory containing scripts) and install Node dependencies:

cd "SKILL_DIR" && npm install cheerio

Typical Usage

When the Agent operates according to the Skill workflow, the core commands are as follows (SKILL_DIR should be replaced with the local skill path).

Search only (do not fetch body text):

node "SKILL_DIR/scripts/search_and_fetch.js" "Keyword" -n 10

Search and extract full text:

node "SKILL_DIR/scripts/search_and_fetch.js" "Keyword" -n 5 -f

Search, fetch full text, and save JSON:

node "SKILL_DIR/scripts/search_and_fetch.js" "Keyword" -n 10 -f -o result.json

Parameter Summary:

Parameter Meaning
query (positional arg) Search keyword, required
-n, --num Number of entries, default 10, max 50
-f, --fetch Extract full text (will resolve real URL first)
-o, --output Output JSON path
--no-resolve Do not resolve real URL, faster but links remain Sogou intermediate links

Fields included in each record: title, url, summary, datetime / date_text / date_description, source, url_resolved; when using -f, there is an additional fullContent (title, account, pubTime, content, wordCount).

Applicable Scenarios and Notes

Who is it for

  • Analysts, operators, and developers who need to batch query official account articles, organize metadata or body text within an Agent session.
  • Performing competitive account content comparison, excerpting hot topics, and collecting materials before writing (Copyright and compliance must still be judged independently).

Limitations and Pitfalls

  • Data is retrieved via Sogou WeChat search, which involves anti-scraping measures; occasional failures in resolving real URLs are normal.
  • For full-text scraping, it is recommended to maintain a request interval of approximately 1–2 seconds on the script side to reduce the risk of being banned.
  • Official Disclaimer: The tool is for learning and research purposes only; do not use for unauthorized large-scale scraping or commercial reproduction.
  • Depends on Node and network; corresponding permissions must be granted in sandbox or restricted network environments.

SkillHub Statistics (based on retrieved data): Rating 100000, Downloads 1562, Installation Count 0.

Conclusion

“WeChat Official Account Article Search + Full-text Extraction” strings together “Search Keyword → List → Optional Real Link Resolution → Optional Full Text” into a reproducible command chain, suitable for content research on Agents supporting Skills like Cursor. Please refer to the SKILL.md within the Skill package for installation and parameters; Skill Homepage: https://www.skillhub.cn/skills/user_bb5d057c/wechat-article-full.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye