Skip to content

Commit cf79ec5

Browse files
Astro-Hanjackwener
andauthored
feat(xueqiu): add comments command (#587)
* feat: add xueqiu comments command * docs(xueqiu): add comments command docs --------- Co-authored-by: jackwener <jakevingoo@gmail.com>
1 parent 8c00ad9 commit cf79ec5

6 files changed

Lines changed: 1295 additions & 2 deletions

File tree

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ npm install -g @jackwener/opencli@latest
132132
| **notion** | `status` `search` `read` `new` `write` `sidebar` `favorites` `export` | 桌面端 |
133133
| **discord-app** | `status` `send` `read` `channels` `servers` `search` `members` | 桌面端 |
134134
| **v2ex** | `hot` `latest` `topic` `node` `user` `member` `replies` `nodes` `daily` `me` `notifications` | 公开 / 浏览器 |
135-
| **xueqiu** | `feed` `hot-stock` `hot` `search` `stock` `watchlist` `earnings-date` `fund-holdings` `fund-snapshot` | 浏览器 |
135+
| **xueqiu** | `feed` `hot-stock` `hot` `search` `stock` `comments` `watchlist` `earnings-date` `fund-holdings` `fund-snapshot` | 浏览器 |
136136
| **antigravity** | `status` `send` `read` `new` `dump` `extract-code` `model` `watch` | 桌面端 |
137137
| **chatgpt** | `status` `new` `send` `read` `ask` `model` | 桌面端 |
138138
| **xiaohongshu** | `search` `notifications` `feed` `user` `download` `publish` `creator-notes` `creator-note-detail` `creator-notes-summary` `creator-profile` `creator-stats` | 浏览器 |

docs/adapters/browser/xueqiu.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
| `opencli xueqiu hot` | 获取雪球热门动态 |
1313
| `opencli xueqiu search` | 搜索雪球股票(代码或名称) |
1414
| `opencli xueqiu stock` | 获取雪球股票实时行情 |
15+
| `opencli xueqiu comments` | 获取单只股票的讨论动态(按时间排序) |
1516
| `opencli xueqiu watchlist` | 获取雪球自选股列表 |
1617
| `opencli xueqiu fund-holdings` | 获取蛋卷基金持仓明细(可用 `--account` 按子账户过滤) |
1718
| `opencli xueqiu fund-snapshot` | 获取蛋卷基金快照(总资产、子账户、持仓,推荐 `-f json`|
@@ -28,6 +29,9 @@ opencli xueqiu search 茅台
2829
# View one stock
2930
opencli xueqiu stock SH600519
3031

32+
# View recent discussions for one stock
33+
opencli xueqiu comments SH600519 --limit 5
34+
3135
# Upcoming earnings dates
3236
opencli xueqiu earnings-date SH600519 --next
3337

@@ -57,4 +61,5 @@ opencli xueqiu feed -v
5761

5862
- `fund-holdings` exposes both market value and share fields (`volume`, `usableRemainShare`)
5963
- `fund-snapshot -f json` is the easiest way to persist a full account snapshot for later analysis or diffing
64+
- `comments` returns stock-scoped discussion posts from the symbol page, not reply threads under one parent post
6065
- If the commands return empty data, first confirm the logged-in browser can directly see the Danjuan asset page

docs/adapters/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Run `opencli list` for the live registry.
1212
| **[bilibili](/adapters/browser/bilibili)** | `hot` `search` `me` `favorite` `history` `feed` `subtitle` `dynamic` `ranking` `following` `user-videos` `download` | 🔐 Browser |
1313
| **[zhihu](/adapters/browser/zhihu)** | `hot` `search` `question` `download` | 🔐 Browser |
1414
| **[xiaohongshu](/adapters/browser/xiaohongshu)** | `search` `notifications` `feed` `user` `download` `publish` `creator-notes` `creator-note-detail` `creator-notes-summary` `creator-profile` `creator-stats` | 🔐 Browser |
15-
| **[xueqiu](/adapters/browser/xueqiu)** | `feed` `hot-stock` `hot` `search` `stock` `watchlist` `earnings-date` `fund-holdings` `fund-snapshot` | 🔐 Browser |
15+
| **[xueqiu](/adapters/browser/xueqiu)** | `feed` `hot-stock` `hot` `search` `stock` `comments` `watchlist` `earnings-date` `fund-holdings` `fund-snapshot` | 🔐 Browser |
1616
| **[youtube](/adapters/browser/youtube)** | `search` `video` `transcript` | 🔐 Browser |
1717
| **[v2ex](/adapters/browser/v2ex)** | `hot` `latest` `topic` `node` `user` `member` `replies` `nodes` `daily` `me` `notifications` | 🌐 / 🔐 |
1818
| **[bloomberg](/adapters/browser/bloomberg)** | `main` `markets` `economics` `industries` `tech` `politics` `businessweek` `opinions` `feeds` `news` | 🌐 / 🔐 |

0 commit comments

Comments
 (0)