Like or comment on a specific Xiaohongshu note by its ID. Supports manual comment text or AI-generated comments. Use when the user wants to like, heart, comment on, or interact with a specific XHS note.
已登录小红书主站(python run.py --login 或 --import-cookies)
笔记 ID 是 24 位十六进制字符串,可通过以下方式获取:
python run.py --browse 或 python run.py --browse --keyword "留学"https://www.xiaohongshu.com/explore/64c2a1b2c3d4e5f6a7b8c9d0python run.py --like 64c2a1b2c3d4e5f6a7b8c9d0
python run.py --comment 64c2a1b2c3d4e5f6a7b8c9d0
自动获取笔记详情,LLM 根据内容生成自然评论(20-80 字)。
python run.py --comment 64c2a1b2c3d4e5f6a7b8c9d0 -m "太实用了!正好下周要去"
python run.py --browse # 推荐笔记
python run.py --browse --keyword "美食" # 按关键词搜索
python run.py
# [6] 浏览笔记 [8] 点赞 [9] 评论
from src.engager import like_single_note, comment_single_note, browse_notes
browse_notes(keyword="留学")
like_single_note("64c2a1b2c3d4e5f6a7b8c9d0")
comment_single_note("64c2a1b2c3d4e5f6a7b8c9d0") # AI 评论
comment_single_note("64c2a1b2c3d4e5f6a7b8c9d0", content="手动评论内容")