当前位置: 首页 > Skill >

抖音评论情绪分析

抖音评论情绪分析

1.0.0 2026.11.16 浏览:974
获取Skill文件查看使用说明
作者:周澄许可证:
本文目录展开

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.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,031
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,029
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,017
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,014
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,011
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,011
Skill 文件
  • SKILL.md
    • Douyin Comment Sentiment
    • Compliance Boundary
    • Workflow
    • Expected Input Fields
    • Commands
    • Reporting Style
    • Tencent Cloud Deployment Notes
  • 项目或源文件

相关 Skill

更多
抖音趋势洞察 抖音趋势洞察 当用户需要做抖音趋势洞察、抖音趋势分析、热点观察、内容方向判断、趋势线索归纳或营销灵感整理时使用。面向内容运营、品牌调研和创作者。
全网作品数据抓取分析工具(抖音小红书视频号快手B站通用) 全网作品数据抓取分析工具(抖音小红书视频号快手B站通用) 抓取抖音、小红书、B站、快手、视频号五大平台作品数据(播放/点赞/评论/分享/收藏),完全免费,无需登录/API Key/付费。支持飞书多维表格同步。配置飞书请说配置飞书,抓取数据请直接给链接进行解析。
🎬 short-video — 短视频全域爆款内容生成器 🎬 short-video — 短视频全域爆款内容生成器 短视频全域爆款内容生成器。对标抖音、视频号、小红书、B站全平台流量创作逻辑,面向全平台短视频博主、自媒体达人、知识创作者、带货达人、内容运营,提供一站式自媒体全流程创作AI技能。涵盖多时长短视频完整脚本生成、视频全配套素材自动产出、流量配套文案生成、多创作风格自由切换、批量内容产出五大核心模块,文案接地气、口语化自然流畅,可直接对标拍摄剪辑使用。
短视频选题素材研究 短视频选题素材研究 当用户需要做短视频选题素材研究、短视频脚本素材、口播角度参考、开场钩子观察、竞品内容复盘、评论反馈整理或抖音/快手/小红书选题素材时使用。由社媒数据助手 SocialDataX 提供。
TikTok Content Creation Compliance TikTok Content Creation Compliance 依据TikTok Shop卖家大学官方指南,审查卖家及创作者推广内容的合规性。适用于AI代理需检查内容合规性的场景。