Use this skill when the user wants to collect, import, analyze, summarize, or report on Douyin comment sentiment.
Only process comment data from one of these sources:
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.
scripts/analyze_douyin_comments.py.sentiment_system pipeline.The analyzer recognizes common field aliases:
text, content, comment, comment_text, text_raw.cid, comment_id, id, source_id.aweme_id, video_id, item_id, parent_id.open_id, sec_uid, uid, user_id, user_source_id.create_time, publish_time, created_at.digg_count, like, like_count, reply, reply_count, share, share_count.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
Report:
For production, deploy this as a small service on CVM or TKE:
共 1 个版本