← 返回
未分类

抖音评论情绪分析

Use this skill to analyze authorized Douyin/TikTok China comment data, convert comments into a privacy-safe sentiment report, and optionally export canonical records for the local Chinese social sentiment system. Use only with user-owned exports, authorized APIs, or commercial data providers; do not bypass login, captcha, rate limits, or platform access controls.
Use this skill to analyze authorized Douyin/TikTok China comment data, convert comments into a privacy-safe sentiment report, and optionally export canonical records for the local Chinese social sentiment system. Use only with user-owned exports, authorized APIs, or commercial data providers; do not bypass login, captcha, rate limits, or platform access controls.
user_7bc83592
未分类 community v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 69
下载
💾 0
安装
1
版本
#latest

概述

Douyin Comment Sentiment

Use this skill when the user wants to collect, import, analyze, summarize, or report on Douyin comment sentiment.

Compliance Boundary

Only process comment data from one of these sources:

  • User-owned Douyin account exports or creator-center exports.
  • Douyin Open Platform or an authorized partner API that the user has permission to call.
  • A commercial dataset/provider contract that permits analysis.
  • A local CSV/JSON file the user confirms they are allowed to use.

Do not scrape Douyin pages, reverse private mobile APIs, bypass login/captcha/rate limits, or collect private/unavailable comments. Do not store nicknames, avatars, profile URLs, phone numbers, or raw user IDs. Hash user identifiers and keep only the minimum text needed for analysis.

If the user provides only a Douyin video/share URL, ask for an authorized export file or an authorized API endpoint instead of attempting page scraping.

Workflow

  1. Confirm the data source is authorized.
  2. Accept one of:
    • CSV export path.
    • JSON export path.
    • Authorized API URL plus a token stored in an environment variable.
  3. Run scripts/analyze_douyin_comments.py.
  4. Return the sentiment summary, key examples, risk flags, and output file path.
  5. If the user wants this project's existing dashboard to use the data, export canonical CSV records and import them into the local sentiment_system pipeline.

Expected Input Fields

The analyzer recognizes common field aliases:

  • Comment text: text, content, comment, comment_text, text_raw.
  • Comment id: cid, comment_id, id, source_id.
  • Video/item id: aweme_id, video_id, item_id, parent_id.
  • User id: open_id, sec_uid, uid, user_id, user_source_id.
  • Time: create_time, publish_time, created_at.
  • Engagement: digg_count, like, like_count, reply, reply_count, share, share_count.

Commands

Analyze a local CSV export:

python3 openclaw-skills/douyin-comment-sentiment/scripts/analyze_douyin_comments.py \
  --csv data/douyin/comments.csv \
  --output artifacts/douyin_comment_sentiment_report.json

Analyze a local JSON export:

python3 openclaw-skills/douyin-comment-sentiment/scripts/analyze_douyin_comments.py \
  --json data/douyin/comments.json \
  --output artifacts/douyin_comment_sentiment_report.json

Analyze an authorized API response:

DOUYIN_ACCESS_TOKEN=... python3 openclaw-skills/douyin-comment-sentiment/scripts/analyze_douyin_comments.py \
  --api-url "https://authorized-provider.example.com/comments?video_id=..." \
  --token-env DOUYIN_ACCESS_TOKEN \
  --output artifacts/douyin_comment_sentiment_report.json

Export canonical CSV for this repository's sentiment system:

python3 openclaw-skills/douyin-comment-sentiment/scripts/analyze_douyin_comments.py \
  --csv data/douyin/comments.csv \
  --symbol 600519.SH \
  --topic-tags "抖音评论|白酒消费" \
  --export-canonical data/imports/douyin_authorized_comments.csv \
  --output artifacts/douyin_comment_sentiment_report.json

Reporting Style

Report:

  • Total comments, valid comments, removed empty/spam-like share.
  • Overall positive/negative/neutral distribution.
  • Average sentiment score from -100 to 100.
  • Dominant emotions: joy, anger, sadness, fear, support, doubt.
  • Top negative and positive excerpts with hashed user IDs only.
  • Per-video or per-hour hotspots when available.
  • Compliance note describing the authorized source and retention expectation.

Tencent Cloud Deployment Notes

For production, deploy this as a small service on CVM or TKE:

  • Store raw authorized exports in COS with lifecycle retention.
  • Store reports in COS or CDB.
  • Put access tokens in Tencent Cloud SSM, never in code or chat.
  • Use CLS for logs and alarms.
  • Keep API rate limits below the provider's published limits.

版本历史

共 1 个版本

  • v1.0.0 Initial release 当前
    2026-05-20 12:44 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Stock Watcher

robin797860
管理和监控个人股票自选列表,支持利用同花顺数据添加、删除、列出股票及汇总近期表现。适用于用户希望追踪特定股票、获取表现汇总或管理自选列表时。
★ 112 📥 46,545
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 141,612
data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 273 📥 100,674