🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

小红书自动互动技能

by @luckychay

小红书自动互动技能,实现智能搜索、浏览、点赞和收藏,避免重复操作并支持错误智能处理和历史记录管理。

Versionv1.0.0
📋 Tips & Best Practices

1. MCP服务未启动

   # 检查MCP服务状态
   curl http://localhost:18060/mcp
   

2. 登录状态异常 - 检查小红书APP是否已登录 - 重启MCP服务

3. 点赞/收藏失败 - 可能是平台限制或网络超时 - 脚本会自动记录失败状态,避免重复尝试 - 可调整MAX_ATTEMPTS减少处理数量

4. 历史记录问题 - 历史记录文件:~/.openclaw/workspace/xhs_interaction_history.txt - 格式:LIKE:feed_id:timestampFAVORITE:feed_id:timestamp - 如需重置,可删除该文件

日志查看

# 查看实时日志
tail -f ~/.openclaw/workspace/xhs_interaction_improved.log

查看执行统计

grep -E "📊|执行统计|成功点赞数|成功收藏数" ~/.openclaw/workspace/xhs_interaction_improved.log

查看历史记录

cat ~/.openclaw/workspace/xhs_interaction_history.txt | head -20

View on ClawHub
TERMINAL
clawhub install xhs-auto-interaction

🧪 Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

🔍 Can't find the right skill?

Search 60,000+ AI agent skills — free, no login needed.

Search Skills →