微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📊

跨平台舆情监测与竞品洞察

Sentiment Radar · v1.0.0
效率 安全 B 级 作者 danielwangyy 公开目录收录
1k 下载 0 安装 2.3k 收藏 30 浏览

简介

跨平台舆情监测工具,整合小红书爬虫与Twitter/Reddit MCP接口,支持产品声量追踪、情感分析、竞品对比及定价投诉提取,适用于市场情报与产品调研场景。

原始描述

Multi-platform sentiment monitoring and analysis for products/brands/topics. Collect public opinions from Chinese platforms (小红书/XHS via MediaCrawler) and En...

通过你的 Agent 添加

安装目录:sentiment-radar/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/sentiment-radar/
Codex CLI~/.codex/skills/sentiment-radar/
DeepSeek Harness~/.agents/skills/sentiment-radar/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Sentiment Radar 是一套多平台社媒舆情采集与分析工作流,覆盖中文(小红书)与英文(Twitter/Reddit)两大生态。用户需先通过 MediaCrawler 获取小红书笔记与评论数据(依赖 CDP 浏览器与二维码登录),再经由 Xpoz MCP 工具获取 Twitter/Reddit 帖子,最终通过分析脚本生成结构化情感报告。

关键流程:

  1. 目标定义:明确监测产品/品牌及关键词列表
  2. 数据采集:小红书使用 MediaCrawler(Python+Playwright),Twitter/Reddit 调用 xpoz.getTwitterPostsByKeywords / xpoz.getRedditPostsByKeywords
  3. 智能分析:自动执行关键词分布、产品提及频次、情感分类(正面/负面/担忧/中性)、高互动内容排序、价格投诉提取、竞品对比评论挖掘
  4. 报告输出:生成 JSON(供程序调用)与 Markdown(可读报告)双格式

显著优点

  • 平台覆盖全:同时支持中国主流种草平台与海外社媒,便于全球化品牌监测
  • 分析维度深:不仅统计情感比例,还能提取定价敏感点、用户痛点、竞品对比等可执行洞察
  • 反爬策略成熟:MediaCrawler 采用 CDP 模式+2秒延迟,降低封号风险
  • 可扩展性强:JSON 输出便于接入 BI 系统,支持 cron 定时任务实现持续监控

潜在缺点与局限性

  • 认证门槛高:小红书需二维码扫码登录,Twitter/Reddit 需 OAuth Token 配置,新手配置成本较大
  • 数据时效受限:依赖平台公开接口与爬虫,无法获取私有/限流内容
  • 中文数字解析:需额外处理「1.1万」等格式,存在解析边界情况
  • 无实时流式采集:当前为批量拉取模式,非实时监听

适合人群

  • 产品经理/市场分析师:追踪新品发布反馈与竞品口碑
  • 品牌运营团队:监测舆情危机与KOL投放效果
  • 投资研究人员:捕捉消费品类目的用户情绪信号
  • 出海企业:同步监测海内外市场对产品的差异化反应

常规风险

  • 账号封禁:频繁爬取可能触发平台风控,建议控制请求频率
  • 数据合规:社媒内容采集需遵守《个人信息保护法》及平台 ToS,商用需评估法律风险
  • Token 泄露:OAuth Token 存储于本地明文文件,共享环境需加密处理
  • 依赖维护:MediaCrawler 与 Xpoz MCP 为第三方项目,API 变更可能导致功能中断

技能正文


name: sentiment-radar description: "Multi-platform sentiment monitoring and analysis for products/brands/topics. Collect public opinions from Chinese platforms (小红书/XHS via MediaCrawler) and English platforms (Twitter/Reddit via Xpoz MCP). Generate structured sentiment reports with product mention tracking, pricing complaints, comparison analysis, and actionable insights. Use when: (1) monitoring competitor sentiment, (2) tracking product launch reception, (3) analyzing user pain points across social media, (4) building market intelligence reports."

Sentiment Radar

Multi-platform social media sentiment collection and analysis.

Supported Platforms

Platform Method Auth Required
小红书 (XHS) MediaCrawler (CDP browser) QR code login
Twitter Xpoz MCP (xpoz.getTwitterPostsByKeywords) OAuth token
Reddit Xpoz MCP (xpoz.getRedditPostsByKeywords) OAuth token

Prerequisites

MediaCrawler (for 小红书)

If not installed:

git clone https://github.com/NanmiCoder/MediaCrawler ~/.openclaw/workspace/skills/media-crawler
cd ~/.openclaw/workspace/skills/media-crawler
uv sync
playwright install chromium

Config: config/base_config.py — set ENABLE_CDP_MODE = True, SAVE_DATA_OPTION = "json"

Xpoz MCP (for Twitter/Reddit)

Requires mcporter with Xpoz OAuth configured. Token at ~/.mcporter/xpoz/tokens.json.

Workflow

Step 1: Define targets

Identify products/brands and search keywords. Example:

Products: Plaud录音笔, 钉钉闪记, 飞书录音豆
Keywords (XHS): Plaud录音笔,钉钉闪记,飞书妙记,AI录音笔评测,录音豆
Keywords (Twitter): Plaud NotePin, DingTalk recorder, Lark voice

Step 2: Collect data

XHS collection

Run MediaCrawler with keywords. Use CDP mode (user's Chrome browser) for anti-detection. The crawler needs QR code scan for login — run in background with exec(background=true).

cd skills/media-crawler
# Update keywords in config/base_config.py, then:
.venv/bin/python main.py --platform xhs --lt qrcode

Environment fixes for macOS:

export MPLBACKEND=Agg
export PATH="/usr/sbin:$PATH"

Data output: data/xhs/json/search_contents_YYYY-MM-DD.json and search_comments_YYYY-MM-DD.json

Twitter/Reddit collection

Use Xpoz MCP tools directly:

  • xpoz.getTwitterPostsByKeywords — returns posts with engagement metrics
  • xpoz.getRedditPostsByKeywords — returns posts with comments

Step 3: Analyze

Run the analysis script on collected data:

python3 scripts/analyze.py \
  --data ./data \
  --products '{"Plaud": ["plaud","notepin"], "钉钉": ["钉钉","dingtalk","闪记"]}' \
  --output report.md

The script performs:

  • Keyword distribution analysis (notes per keyword, total likes/collects)
  • Product mention frequency in comments
  • Sentiment classification (positive/negative/concern/neutral)
  • Top notes ranking by engagement
  • Price/subscription complaint extraction
  • Product comparison comment extraction

Step 4: Report

The analysis outputs:

  1. JSON results to stdout (for programmatic use)
  2. Markdown report to --output path

Combine XHS + Twitter data into a comprehensive report. See references/report-template.md for structure.

Key Analysis Dimensions

  1. Sentiment split — positive vs negative vs concern ratio
  2. Product mentions — which products get discussed most
  3. Pricing complaints — subscription fatigue, value perception
  4. Comparison comments — head-to-head user opinions
  5. User pain points — feature requests, complaints, unmet needs
  6. Engagement metrics — likes, collects, shares as popularity signals

Notes

  • XHS data uses Chinese number format (e.g., "1.1万") — parse_count() in analyze.py handles this
  • MediaCrawler has 2s sleep between requests to avoid rate limiting
  • Each keyword returns ~20 notes per page (configurable in MediaCrawler config)
  • Comments are fetched per note automatically
  • For recurring monitoring, schedule via cron and compare against previous reports

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

sentiment-analysissocial-media-monitoringcompetitive-intelligencemarket-researchdata-collectionxiaohongshutwitterredditbrand-monitoring

同类 Skill