feat(qzone): get_qzone_feeds — read friend feeds (好友动态) via web API

Second read-only Qzone slice. getQzoneFeeds over ic2.qzone.qq.com's
feeds3_html_more CGI, same cookie/g_tk plumbing + JSONP-tolerant parse +
throw-on-auth-failure contract as get_qzone_msg_list. Surfaces the stable
structured fields (uin/nickname/time/appid/key) and passes the
pre-rendered html blob through verbatim — deep HTML→segment parsing is
left to callers. Paginated via page_num (1-based) + count.

- protocol/web/qzone.ts: getQzoneFeeds + mapFeeds.
- core: QzoneApi.getFeeds (always the bot's own identity).
- onebot: get_qzone_feeds action; regenerated MCP catalog.
- tests: feeds mapping, HTTP url/params, empty-feed→[], auth-throw,
  and bridge pageNum/count threading.

Exact CGI field names / pagination cursor to be re-confirmed against a
live capture (same posture as the msglist helper).
This commit is contained in:
DrSmoothl committed 2026-06-20 01:31:36 +08:00
1 parent 0083a8fb07
commit 094dc12f0c
6 files changed
+293 -3

No files matched your search

+53 -1
View File
@@ -3000,6 +3000,58 @@ export const ACTIONS: CatalogAction[] = [
},
"category": "群相册"
},
{
"name": "get_qzone_feeds",
"aliases": [],
"summary": "获取 QQ 空间好友动态(feed)",
"readOnly": true,
"params": [
{
"name": "page_num",
"type": "int",
"required": false,
"schema": {
"type": "integer",
"minimum": 1
},
"desc": "页码(1 起)",
"default": 1
},
{
"name": "count",
"type": "int",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 50
},
"desc": "本页数量",
"default": 10
}
],
"invariants": [],
"inputSchema": {
"type": "object",
"properties": {
"page_num": {
"type": "integer",
"minimum": 1,
"description": "页码(1 起)",
"default": 1
},
"count": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "本页数量",
"default": 10
}
},
"additionalProperties": true
},
"category": "空间"
},
{
"name": "get_qzone_msg_list",
"aliases": [],
@@ -6641,6 +6693,6 @@ export const CATEGORIES: CatalogCategory[] = [
},
{
"category": "空间",
"count": 1
"count": 2
}
];