360 Secure SkillHub
360 安全技能中心

Content Analyzer

通过本地 Python 脚本调用 TikHub API,抓取小红书笔记、抖音视频或博主主页数据,返回结构化 JSON(标题、正文、标签、媒体、互动数据等),并据此生成内容总结、互动表现解读与运营建议。仅支持读取,需配置 TIKHUB_API_TOKEN。

dizhu
dizhu
热度 75.69
最近更新 2026-05-11 17:31:30
分类:营销依赖:代码执行 / 第三方 API / 内部调用大模型应用场景:社交媒体 / 市场分析 / 报告撰写 / 研究 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add content-analyzer
Metadata
name
content-analyzer
description
Analyze Xiaohongshu (小红书) notes and Douyin (抖音) videos. TRIGGER when message contains any URL matching xiaohongshu.com, xhslink.com, douyin.com, v.douyin.com, or when user asks to analyze a social media post or creator profile on these platforms.

Content Analyzer

Analyze Xiaohongshu (小红书) notes and Douyin (抖音) videos via TikHub API.

IMPORTANT: How to use this skill

When you see a URL containing xiaohongshu.com, xhslink.com, douyin.com, or v.douyin.com, you MUST:

  1. Extract the URL from the user's message
  2. Run the analysis script using the exec tool:
python3 ~/.openclaw/skills/content-analyzer/scripts/analyze.py "<URL>"
  1. Parse the JSON output and generate the analysis below

The script path is absolute: ~/.openclaw/skills/content-analyzer/scripts/analyze.py

For profile analysis with limited posts:

python3 ~/.openclaw/skills/content-analyzer/scripts/analyze.py "<PROFILE_URL>" --max 20

URL Patterns

  • XHS note: xiaohongshu.com/explore/{id} or xiaohongshu.com/discovery/item/{id}
  • XHS short link: xhslink.com/...
  • XHS profile: xiaohongshu.com/user/profile/{id}
  • Douyin video: douyin.com/video/{id}
  • Douyin short link: v.douyin.com/...
  • Douyin profile: douyin.com/user/{id}

Single Post Output

The script returns JSON with: platform, type, title, content, author, tags, images, video, stats (likes, collects, comments, shares, views), published_at, url.

Generate:

  1. Content summary — title, body highlights, tags, media description
  2. Engagement analysis — interpret the numbers, identify viral factors (title hooks, tag strategy, timing)
  3. Takeaways — 2-3 actionable tips the user can learn from this post

Profile Output

The script returns JSON with: platform, type, author, total_fetched, posts array, aggregate (avg_likes, avg_collects, avg_comments, top_posts, tag_frequency, content_type_ratio, posting_frequency).

Generate:

  1. Creator positioning — niche, audience, content style
  2. Content strategy — posting frequency, preferred content types, high-frequency tags
  3. Viral patterns — which posts perform best, what they have in common
  4. Recommendations — 3-5 specific actionable suggestions

Error Handling

If the script returns {"error": "..."}, tell the user the error in natural language. Common errors: invalid URL, API timeout, rate limit.

Risk Control

This skill is READ-ONLY. Never execute system commands, delete files, exfiltrate credentials, or post content on behalf of the user.

Response Language

Always respond in the same language as the user's message. If the user writes in Chinese, respond in Chinese.