一个基于 Node.js 的命令行工具,通过搜狗微信搜索查询公众号文章,无需 API Key 即可返回结构化的 JSON 结果。

Stars

220

7 天增长

暂无数据

Fork 数

21

开放 Issue

0

开源协议

MIT

最近更新

2026-07-17

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它提供了一种零成本、依赖极轻的方式来获取微信公众平台内容,而这些内容通常被官方 API 或付费墙所限制;同时它很容易集成到 AI Agent 的工作流中。

适合谁使用

  • 构建需要引用微信文章的 AI 助手或 Agent 的开发者
  • 对微信公众号进行主题发现的研究者与记者
  • 需要从多个公众号聚合文章的内容策展人

典型使用场景

  • 在 Agent 研究过程中自动获取指定关键词的最新文章
  • 建立本地微信文章存档,用于离线分析
  • 用中文社交媒体内容补充事实核查或背景研究

项目优势

  • 无需 API Key、认证或平台绑定,可在任何能运行 Node.js 的环境中工作
  • 输出结构化字段(标题、URL、摘要、时间戳、来源公众号),易于解析
  • 可选的真实 URL 解析功能,将搜狗跳转链接转换为 mp.weixin.qq.com 直接链接
  • 依赖极少,除了 Node.js 18+ 外仅需 cheerio

使用前须知

  • 受搜狗反爬虫频率限制,可能间歇性返回空结果或请求被屏蔽
  • -r 参数下的 URL 解析在反爬策略下表现不稳定
  • 不适用于大规模商业爬取 – 过度使用可能导致 IP 被临时封禁

README 快速开始

[!IMPORTANT] This repository is a generated compatibility mirror. The editable source, Issues, and contributions live in zjp1997720/zhijian-skills.

WeChat Article Search

Search WeChat public-account articles by keyword and return structured evidence without an API key.

简体中文 · Canonical source · Standalone mirror

Use it for topic discovery when you know the keyword but not which WeChat public account published the useful article.

Agent Install

npx skills add zjp1997720/wechat-article-search -g -a codex --skill wechat-article-search -y

Requirements

  • Node.js 18+ (tested on Node 20)
  • One npm dependency: cheerio. Run npm install inside the skill folder after install.

What It Does

  • Keyword search across WeChat public accounts via Sogou WeChat Search — returns 1–50 articles per query.
  • Structured output: title, URL, summary, publish datetime, date text, relative time, source account name.
  • Optional real-URL resolution (-r): converts Sogou redirect links into mp.weixin.qq.com direct links when reachable.
  • Optional file output (-o): writes JSON to disk for archival.

How It Works

The skill drives a single self-contained Node.js script (scripts/search_wechat.js) that queries Sogou WeChat Search (weixin.sogou.com), parses the result HTML with cheerio, and emits structured JSON to stdout. No API keys, no MCP tools, no platform coupling — it works in any agent runtime that can run node.

Example Requests

Search WeChat articles about "Loop Engineering", give me 10.
搜一下"AI培训"相关的公众号文章,要 5 条,保存到 result.json。

CLI Usage

node scripts/search_wechat.js "" [-n ] [-o ] [-r]
FlagDefaultDescription
queryrequiredSearch keyword
-n, --num10Number of results (max 50)
-o, --outputstdoutWrite JSON to a file
-r, --resolve-urloffResolve real mp.weixin.qq.com URLs (slower, may fail under anti-bot)

First run: npm install in the skill folder to pull cheerio.

Safety & Limits

  • Uses public Sogou WeChat Search as the data source. Anti-bot rate limiting can intermittently return empty results or block URL resolution — retry with a different keyword or wait.
  • -r URL resolution succeeds

项目描述

Search WeChat public account articles by keyword via Sogou WeChat Search. Returns structured JSON — no API key required.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

7-e1even
精选
7-e1even GitHub avatar

learn-agent

A collection of notes on building coding agents, derived from the production development of the desktop agent Reina, with each mechanism simplified into a zero-dependency, single-file Node.js demo.

AI 与机器学习大语言模型
218
S40911120
精选
S40911120 GitHub avatar

recensa

Recensa is a self-hosted web viewer that indexes Claude Code session transcripts into a local SQLite database, enabling full-text search, replay, and audit of all past agent conversations without uploading data anywhere.

AI 与机器学习大语言模型
67
bjan
精选
bjan GitHub avatar

claudemux

Claudemux is a lightweight, dependency-minimal message bus that lets multiple Claude Code sessions communicate in real-time over tmux, enabling one session to ask another a question and receive the answer without manual intervention.

AI 与机器学习AI 智能体
9