From 3fa0abc1865d57085b0da72f845170e31533c4c7 Mon Sep 17 00:00:00 2001 From: leeguooooo Date: Sat, 18 Apr 2026 21:39:16 +0900 Subject: [PATCH] =?UTF-8?q?docs(sns):=20=E5=9C=A8=20README=20/=20SKILL=20?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=20media[]=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `sns-feed` / `sns-search` 的帖子条目现在同时输出 `media` 和 `media_count`,下游可直接拿 url / thumb / key / token / md5 / enc_idx / size 做图片代理或离线渲染。 --- README.md | 2 +- SKILL.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 50b7394..e0f06da 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ wx sns-search "婚礼" --user "李四" --since 2023-01-01 ``` - **sns-notifications** 返回互动通知:`type`(`like`/`comment`)、`from_nickname`、`content`(评论正文)、`feed_preview` + `feed_author`(对应原帖) -- **sns-feed** / **sns-search** 返回朋友圈帖子:`author`、`content`(正文)、`media_count`、`location`、`timestamp` +- **sns-feed** / **sns-search** 返回朋友圈帖子:`author`、`content`(正文)、`media`、`media_count`、`location`、`timestamp`;`media` 字段含每张图的 url/thumb/key/token/md5/enc_idx/size,供下游做图片代理或离线渲染。`media_count = media.len()`,按 DOM 解析的合法 `` 子节点计数(malformed XML 返回 0) 朋友圈数据只覆盖你本地刷到过的帖子(微信 app 按需下载)。 diff --git a/SKILL.md b/SKILL.md index 9a2f605..4ce28c3 100644 --- a/SKILL.md +++ b/SKILL.md @@ -170,7 +170,7 @@ wx sns-search "婚礼" --user "李四" --since 2023-01-01 -n 50 **字段区分**: - `sns-notifications` 返回"通知"条目:`type`(`like`/`comment`)、`from_nickname`、`content`(评论正文,点赞为空)、`feed_preview` + `feed_author`(对应的原帖) -- `sns-feed` / `sns-search` 返回"帖子"条目:`author`、`content`(朋友圈正文)、`media_count`(图片/视频数)、`location`、`timestamp` +- `sns-feed` / `sns-search` 返回"帖子"条目:`author`、`content`(朋友圈正文)、`media`、`media_count`(图片/视频数)、`location`、`timestamp`;`media` 字段含每张图的 url/thumb/key/token/md5/enc_idx/size,供下游做图片代理或离线渲染。`media_count = media.len()`,按 DOM 解析的合法 `` 子节点计数(malformed XML 返回 0) > 只保存你本地刷到过的朋友圈(微信 app 按需下载)。没刷到过的帖子不在本地,任何命令都拿不到。