wechat-article-search

Original🇨🇳 Chinese
Translated
1 scriptsChecked / no sensitive code detected

WeChat Official Account Article Search Skill. Retrieve article lists via WeChat search, covering various Chinese information categories such as technology/AI, social hotspots, finance, education, and workplace; support keyword-based retrieval and return titles, summaries, publication times, source official accounts, and links. Use this skill when users need to find WeChat Official Account articles, organize reference materials, or quickly obtain article information.

14installs
Added on

NPX Install

npx skill4agent add wuchubuzai2018/expert-skills-hub wechat-article-search

SKILL.md Content (Chinese)

View Translation Comparison →

WeChat Official Account Article Search Instructions

Applicable Scenarios

  • When the user says "Help me search for official account articles/recent articles with a certain keyword"
  • Need to quickly obtain: title, abstract, publication time, official account name, accessible link

Workflow

Step 1: Confirm Dependencies are Installed

This script depends on the NodeJS package
cheerio
, it is recommended to install it globally or in the project first:
bash
npm install -g cheerio

Step 2: Confirm Keyword and Result Count

  1. Confirm keyword and quantity

Step 3: Execute Search Command

  1. Execute regular search command
bash
node scripts/search_wechat.js "keyword" 

Special Workflow (Optional)

  1. Execute search command with quantity limit
bash
node scripts/search_wechat.js "keyword"  -n 15
  1. If users need to save results to a file, execute the command
bash
node scripts/search_wechat.js "keyword" -n 20 -o result.json
  1. If you want to obtain the real link of WeChat article domains, execute the following command
bash
node scripts/search_wechat.js "keyword" -n 5 -r

Parameter Description

  • query
    : Search keyword (required)
  • -n, --num
    : Number of results to return (default 10, max 50)
  • -o, --output
    : Output JSON file path (optional)
  • -r, --resolve-url
    : Attempt to resolve intermediate links to real WeChat article links (will make additional requests for each result)

Output Fields (Article Object)

Article title, article URL, article summary, publication time, source official account name

Common Issue Handling

  • Empty results: Try changing keywords, using fewer special characters, or retrying later
  • Failed to resolve real URL: This is normal (anti-crawling restrictions); you can prompt users to open the intermediate link in a browser

Notes

  • This tool is for learning and research purposes only, do not use it for commercial purposes or large-scale crawling.
  • Please comply with the terms of service and regulations of relevant websites when using this tool.
  • Excessive use may lead to IP blocking, please use it cautiously.