diff --git a/README.md b/README.md index aa9c12e..5cc515f 100644 --- a/README.md +++ b/README.md @@ -134,10 +134,10 @@ npm install -g @jackwener/opencli@latest |------|----------|------| | **bilibili** | `hot` `search` `me` `favorite` `history` `feed` `subtitle` `dynamic` `ranking` `following` `user-videos` | 🔐 Browser | | **zhihu** | `hot` `search` `question` | 🔐 Browser | -| **xiaohongshu** | `search` `notifications` `feed` `me` `user` | 🔐 Browser | +| **xiaohongshu** | `search` `notifications` `feed` `user` | 🔐 Browser | | **xueqiu** | `feed` `hot-stock` `hot` `search` `stock` `watchlist` | 🔐 Browser | -| **twitter** | `trending` `bookmarks` `profile` `search` `timeline` `following` `followers` `notifications` `post` `reply` `delete` `like` `article` `follow` `unfollow` `bookmark` `unbookmark` | 🔐 Browser | -| **reddit** | `hot` `frontpage` `search` `subreddit` | 🔐 Browser | +| **twitter** | `trending` `bookmarks` `profile` `search` `timeline` `thread` `following` `followers` `notifications` `post` `reply` `delete` `like` `article` `follow` `unfollow` `bookmark` `unbookmark` | 🔐 Browser | +| **reddit** | `hot` `frontpage` `popular` `search` `subreddit` `read` `user` `user-posts` `user-comments` `upvote` `save` `comment` `subscribe` `saved` `upvoted` | 🔐 Browser | | **weibo** | `hot` | 🔐 Browser | | **boss** | `search` `detail` | 🔐 Browser | | **coupang** | `search` `add-to-cart` | 🔐 Browser | diff --git a/README.zh-CN.md b/README.zh-CN.md index e2f0cbc..4817ce0 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -133,10 +133,10 @@ npm install -g @jackwener/opencli@latest |------|------|------| | **bilibili** | `hot` `search` `me` `favorite` `history` `feed` `subtitle` `dynamic` `ranking` `following` `user-videos` | 🔐 浏览器 | | **zhihu** | `hot` `search` `question` | 🔐 浏览器 | -| **xiaohongshu** | `search` `notifications` `feed` `me` `user` | 🔐 浏览器 | +| **xiaohongshu** | `search` `notifications` `feed` `user` | 🔐 浏览器 | | **xueqiu** | `feed` `hot-stock` `hot` `search` `stock` `watchlist` | 🔐 浏览器 | -| **twitter** | `trending` `bookmarks` `profile` `search` `timeline` `following` `followers` `notifications` `post` `reply` `delete` `like` `article` `follow` `unfollow` `bookmark` `unbookmark` | 🔐 浏览器 | -| **reddit** | `hot` `frontpage` `search` `subreddit` | 🔐 浏览器 | +| **twitter** | `trending` `bookmarks` `profile` `search` `timeline` `thread` `following` `followers` `notifications` `post` `reply` `delete` `like` `article` `follow` `unfollow` `bookmark` `unbookmark` | 🔐 浏览器 | +| **reddit** | `hot` `frontpage` `popular` `search` `subreddit` `read` `user` `user-posts` `user-comments` `upvote` `save` `comment` `subscribe` `saved` `upvoted` | 🔐 浏览器 | | **weibo** | `hot` | 🔐 浏览器 | | **boss** | `search` `detail` | 🔐 浏览器 | | **coupang** | `search` `add-to-cart` | 🔐 浏览器 | diff --git a/SKILL.md b/SKILL.md index b7998af..ba1bde1 100644 --- a/SKILL.md +++ b/SKILL.md @@ -68,7 +68,6 @@ opencli zhihu question --id 34816524 # 问题详情和回答 opencli xiaohongshu search --keyword "美食" # 搜索笔记 opencli xiaohongshu notifications # 通知(mentions/likes/connections) opencli xiaohongshu feed --limit 10 # 推荐 Feed -opencli xiaohongshu me # 我的信息 opencli xiaohongshu user --uid xxx # 用户主页 # 雪球 Xueqiu (browser) @@ -88,6 +87,7 @@ opencli twitter bookmarks --limit 20 # 获取收藏的书签推文 opencli twitter search --keyword "AI" # 搜索推文 opencli twitter profile elonmusk # 用户资料 opencli twitter timeline --limit 20 # 时间线 +opencli twitter thread 1234567890 # 推文 thread(原文 + 回复) opencli twitter article 1891511252174299446 # 推文长文内容 opencli twitter follow elonmusk # 关注用户 opencli twitter unfollow elonmusk # 取消关注 @@ -97,9 +97,20 @@ opencli twitter unbookmark https://x.com/... # 取消收藏 # Reddit (browser) opencli reddit hot --limit 10 # 热门帖子 opencli reddit hot --subreddit programming # 指定子版块 -opencli reddit frontpage --limit 10 # 首页 -opencli reddit search --keyword "AI" # 搜索 -opencli reddit subreddit --name rust # 子版块浏览 +opencli reddit frontpage --limit 10 # 首页 /r/all +opencli reddit popular --limit 10 # /r/popular 热门 +opencli reddit search --query "AI" --sort top --time week # 搜索(支持排序+时间过滤) +opencli reddit subreddit --name rust --sort top --time month # 子版块浏览(支持时间过滤) +opencli reddit read --post_id 1abc123 # 阅读帖子 + 评论 +opencli reddit user --username spez # 用户资料(karma、注册时间) +opencli reddit user-posts --username spez # 用户发帖历史 +opencli reddit user-comments --username spez # 用户评论历史 +opencli reddit upvote --post_id xxx --direction up # 投票(up/down/none) +opencli reddit save --post_id xxx # 收藏帖子 +opencli reddit comment --post_id xxx --text "Great!" # 发表评论 +opencli reddit subscribe --subreddit python # 订阅子版块 +opencli reddit saved --limit 10 # 我的收藏 +opencli reddit upvoted --limit 10 # 我的赞 # V2EX (public + browser) opencli v2ex hot --limit 10 # 热门话题 diff --git a/package-lock.json b/package-lock.json index e66d204..009cfec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@jackwener/opencli", - "version": "0.7.0", + "version": "0.7.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@jackwener/opencli", - "version": "0.7.0", + "version": "0.7.1", "license": "BSD-3-Clause", "dependencies": { "chalk": "^5.3.0",