xhs-explore
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese输入判断
Input Judgment
- 用户想浏览推荐 → 步骤 1
- 用户提供了 feed_id → 步骤 2
- User wants to browse recommendations → Step 1
- User provides a feed_id → Step 2
执行流程
Execution Process
1. 获取推荐流
1. Get Recommendation Feed
调用 (无参数),返回首页推荐笔记列表。
list_feeds展示每条笔记的标题、作者、互动数据,附带 和 。
feed_idxsec_tokenCall (no parameters) to return the homepage recommended note list.
list_feedsDisplay the title, author, interaction data of each note, along with and .
feed_idxsec_token2. 查看笔记详情
2. View Note Details
调用 :
get_feed_detail- (string,必填)
feed_id - (string,必填)
xsec_token - (bool,可选,默认 false,仅返回前 10 条评论)
load_all_comments - (int,可选,load_all_comments=true 时生效,默认 20)
limit - (bool,可选,是否展开二级回复)
click_more_replies - (int,可选,跳过回复数超过此值的评论,默认 10)
reply_limit - (string,可选:slow | normal | fast)
scroll_speed
展示:笔记内容、图片、作者信息、互动数据、评论列表。
提示用户可以:
- 点赞/收藏(使用 xhs-interact)
- 发表评论(使用 xhs-interact)
- 查看作者主页(使用 xhs-profile)
Call :
get_feed_detail- (string, required)
feed_id - (string, required)
xsec_token - (bool, optional, default false, only returns the first 10 comments)
load_all_comments - (int, optional, takes effect when load_all_comments=true, default 20)
limit - (bool, optional, whether to expand secondary replies)
click_more_replies - (int, optional, skip comments with more replies than this value, default 10)
reply_limit - (string, optional: slow | normal | fast)
scroll_speed
Display: note content, images, author information, interaction data, comment list.
Prompt users that they can:
- Like/Bookmark (use xhs-interact)
- Post comments (use xhs-interact)
- View author's homepage (use xhs-profile)
失败处理
Failure Handling
| 场景 | 处理 |
|---|---|
| 未登录 | 引导使用 xhs-login |
| 笔记已删除或不可见 | 告知用户该笔记无法访问 |
| Scenario | Handling |
|---|---|
| Not logged in | Guide to use xhs-login |
| Note has been deleted or is invisible | Inform the user that the note is inaccessible |