tiktok评论扒取+产品舆论分析

SKILL研究检索
研究检索 未标注权限 许可证不明确
安装这个技能

可用于产品舆论数据调研 当用户想要从视频链接抓取TikTok评论、按产品类别(如一次性面巾和浴巾)清理和筛选数据、根据文本线索推断用户地区,并生成情感分析报告时,就可以使用这个skill。这个skill处理TikTok数据流程的第2到第4步:通过TikTok内部API抓取评论(无需登录)、使用关键词进行类别筛选的数据清理、地区推断以及报告生成。至于关键词搜索和视频链接收集(第1步),请使用tiktok-search技能。

一句话选型结论

按资料字段整理

tiktok评论扒取+产品舆论分析是研究检索类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类研究检索 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_7b234434/tiktok-comment-scraper
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

研究检索
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_7b234434仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791624951
正文体量9.5 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
查资料并整理出处

让模型按主题查资料,并把引用来源整理成清单。

网页与文献要点提炼

把长文、论文、网页压成能直接看的要点。

竞品与行业汇总

按关键词汇总竞品动态与行业信息。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在研究检索场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
tiktok评论扒取+产品舆论分析当前 未标注权限 未标注 未标注 未标注 有
寻找技能 浏览器控制 GitHub 仓库 3120.0 万 Codex、Claude、Cursor 有
自我改进 Agent 接触敏感数据 ClawHub 市场 1646.4 万 OpenClaw 有
灵魂追踪 联网访问 GitHub 仓库 758.9 万 Codex、Claude、Cursor 有
自我完善 联网访问 ClawHub 市场 682.9 万 OpenClaw 有
微软代工厂 调用外部服务 GitHub 仓库 661.4 万 Codex、Claude、Cursor 有

SKILL.md 全文

9.5 KB
模型实际读到的说明书原文,来自技能仓库

TikTok Comment Scraper & Analyzer

Purpose

Scrape TikTok comments from video URLs using TikTok's internal comment API (no login required), clean and filter data by product category, infer user regions, and generate analysis reports. This is Steps 2-4 of the TikTok data pipeline.

When to Use

  • User provides TikTok video URLs and wants to scrape comments
  • User says "scrape comments from this TikTok video"
  • User wants to clean/filter scraped TikTok data by category
  • User needs sentiment + region analysis on TikTok comments
  • After tiktok-search has collected video URLs, to scrape comments from them

API Details

The core API endpoints (discovered through testing) work WITHOUT authentication:

Main comment list

GET https://www.tiktok.com/api/comment/list/
  ?aid=1988
  &aweme_id={video_id}
  &count=50
  &cursor={cursor}

Comment replies (楼中楼)

GET https://www.tiktok.com/api/comment/list/reply/
  ?aid=1988
  &aweme_id={video_id}
  &comment_id={comment_id}
  &count=50
  &cursor={cursor}

Key facts:
- No login, cookie, or API key required for public videos
- Returns max ~50 comments/replies per page, paginated via cursor
- has_more: true/false indicates if more pages exist
- Without login, returns all publicly accessible comments (default max_per_video=10000, collects until has_more=false)
- user.region and user.language fields are almost always empty — region must be inferred from text
- IMPORTANT: Reply count field is reply_comment_total (NOT replyCount). The main comment list also includes inline reply_comment preview data for some comments.
- --no-replies flag disables reply fetching; --max-replies N controls max replies per comment (default 50)
- Data gap: TikTok's API total field is typically 3-10 higher than accessible comments (includes deleted/hidden). The scraper collects all publicly visible data; the gap is inherent to TikTok's no-login public API.

Architecture

The scraper processes comments in three phases to guarantee correct ordering and deduplication:

Phase 1: Main comment list API
  └─ Collects all top-level comments + inline reply_comment previews
  └─ replies_map: parent_cid → [inline_replies]
  └─ Preserves TikTok's original sort order

Phase 2: Reply API (for each comment with reply_comment_total > 0)
  └─ Calls /api/comment/list/reply/ for each parent
  └─ Deduplicates against inline replies by comment_id
  └─ Merges unique API replies into replies_map[parent_cid]

Phase 3: Interleave
  └─ Outputs: parent → replies (time-sorted) → next parent → replies → ...
  └─ Guarantees every reply appears immediately after its parent

Do NOT change this three-phase order without understanding that:
- Phase 1 + Phase 2 must complete data collection before Phase 3 orders it
- Inline reply dedup (by comment_id) happens in Phase 2
- Text-similarity dedup (by user+text) happens in scrape_from_urls
- If replies are collected but not interleaved, they'll all appear at the end — the exact bug we fixed

Scripts

1. scripts/scrape.py — Comment scraping

# From a single video URL (includes replies by default)
python scripts/scrape.py "https://www.tiktok.com/@user/video/123" ./output 200

# Without replies (top-level only)
python scripts/scrape.py "https://www.tiktok.com/@user/video/123" ./output 200 --no-replies

# With automatic insight report generation
python scripts/scrape.py "https://www.tiktok.com/@user/video/123" ./output 200 --analyze

# From a JSON file (output of tiktok-search)
python scripts/scrape.py search_results.json ./output 200

# From multiple comma-separated URLs
python scripts/scrape.py "url1,url2,url3" ./output

Outputs: tiktok_comments_{timestamp}.csv with fields: comment_text, username, user_id, nickname, user_bio, user_verified, user_followers, comment_time, likes, reply_count, comment_id, parent_comment_id, comment_type, source_url, source_author, source_video_id, sentiment, language

2. scripts/clean.py — Data cleaning

python scripts/clean.py tiktok_comments_xxx.csv ./output

Performs:
- Category filtering: removes comments from irrelevant categories (bath towels, hair products, cooking, etc.) based on keyword matching in comment text and source author
- Region inference: scans comment text for city/country keywords (Nairobi→Kenya, ug shillings→Uganda, etc.) — NOT from TikTok metadata (which is always empty)
- Sentiment re-labeling with expanded keyword library
- Purchase intent detection
- Per-region CSV exports

Outputs: tiktok_clean_{timestamp}.csv + per-region files

3. scripts/analyze.py — Context-aware insight analysis (NEW)

# Analyze an existing CSV and generate an HTML insight report
python scripts/analyze.py tiktok_comments_xxx.csv ./output

# With brand/product focus
python scripts/analyze.py tiktok_comments_xxx.csv ./output --brand "Clean Skin Club" --product "face towel"

This is a context-aware analysis engine that goes beyond per-comment sentiment. It performs:

  1. Video context inference — Reverse-engineers the video topic from comment keywords
  2. Conversation threading — Groups comments with their replies to understand dialogue context
  3. Thread classification — Categorizes threads: diagnosis question, product question, complaint, alternative suggestion, environmental concern
  4. Product signal extraction — Identifies price sensitivity, eco concerns, information gaps, brand visibility
  5. Innovation opportunity generation — Produces actionable product/marketing suggestions

Outputs: insight_report_{timestamp}.html — a standalone HTML report with visualizations

Use --analyze flag on scrape.py to auto-generate the report after scraping.

4. Sentiment engine (external skill)

Sentiment analysis is handled by the standalone sentiment-analyzer skill (~/.workbuddy/skills/sentiment-analyzer/), which can also be used independently in any project.

from sentiment_engine import SentimentAnalyzer, analyze_sentiment
# See sentiment-analyzer SKILL.md for full documentation

Uses RoBERTa deep learning model with automatic VADER fallback. New CSV columns: sentiment_confidence, dominant_emotion (Ekman 6 emotions: joy/anger/sadness/fear/disgust/surprise).

Important Caveats

  1. Region data is inferred, not verified. TikTok API does not return user location. Region labels come from text keyword matching only — a comment containing "Nairobi" is tagged Kenya. ~95% of comments will be "unknown".

  2. Category filtering is keyword-based. The EXCLUDE_KEYWORDS list covers common irrelevant categories. For production use, review and customize the keyword lists in clean.py.

  3. No login = limited but sufficient. Without authentication, all publicly visible comments are accessible. Default max_per_video=10000 collects complete comment threads.

  4. Rate limiting. Add time.sleep(1-3) between API calls. Aggressive scraping triggers temporary blocks.

  5. Reply count mismatch. reply_comment_total from the main API may report more replies than the reply API returns (~7-10% gap). These are deleted/hidden/moderated comments not accessible without login. The scraper collects all visible replies.

  6. TikTok total field is inflated. The API's total includes deleted and hidden comments, typically 3-10 more than accessible. The scraper output count reflects actual retrieved data.

  7. reply_comment_total field name is critical. The scraper uses reply_comment_total (NOT replyCount) to detect which comments have replies. The main comment list also embeds reply_comment preview data for some comments, which is extracted as inline replies.

  8. Threaded replies are flat. The reply API returns all nested replies as a flat list. The thread_has_more flag on individual replies does not indicate additional accessible data.

  9. Sentiment engine is separate. Emotion analysis uses the standalone sentiment-analyzer skill (RoBERTa + Ekman emotions). If the model fails to load, it falls back to keyword-based analysis automatically.

Example Workflow

# Step 1: Search TikTok (tiktok-search skill)
python ../tiktok-search/scripts/search.py "disposable face towel" 20 ./output

# Step 2: Scrape comments + auto-generate insight report
python scripts/scrape.py ./output/tiktok_search_*.json ./output 200 --analyze

# Or: Step 2a scrape, Step 2b analyze separately
python scripts/scrape.py "https://www.tiktok.com/@user/video/123" ./output 200
python scripts/analyze.py ./output/tiktok_comments_*.csv ./output --product "face towel"

# Step 3: Clean & analyze (legacy)
python scripts/clean.py ./output/tiktok_comments_*.csv ./output

常见问题

5 问
答案由本站依据条目字段整理
tiktok评论扒取+产品舆论分析怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_7b234434/tiktok-comment-scraper。安装方式为未标注。装完刷新技能列表或重开客户端。

tiktok评论扒取+产品舆论分析支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

tiktok评论扒取+产品舆论分析权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

tiktok评论扒取+产品舆论分析收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

tiktok评论扒取+产品舆论分析用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。