关于 apify-competitor-intelligence
使用 Apify Actors 收集多平台数据以分析竞争对手的技能。它指导选择和运行 Actor,并汇总发现或将结果导出为 CSV、JSON。
主要功能
- 01按分析类型选择 Actor
- 02通过 mcpc 获取 Actor 架构
- 03使用 Node.js 脚本运行 Actor
- 04在聊天中或以 CSV、JSON 输出
- 05汇总竞争分析发现
适用场景
- 01比较竞争对手的评价和业务数据
- 02监测竞争对手的社交内容与指标
- 03导出竞争数据用于基准比较
MCP 相关
通过 mcpc 调用 mcp.apify.com 获取 Actor 详情,包括输入架构和输出字段。
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ apify/ agent-skills --skill apify-competitor-intelligence安装后在 Claude Code 中输入/apify-competitor-intelligence确认已加载。
附带文件reference/scripts/run_actor.js
详细介绍
竞争情报
使用 Apify Actors 分析竞争对手,从多个平台提取数据。
前提条件
(无需提前检查)
- 包含
APIFY_TOKEN的.env文件 - Node.js 20.6+(支持原生
--env-file) mcpcCLI 工具:npm install -g @apify/mcpc
工作流
复制此清单并跟踪进度:
Task Progress:
- [ ] Step 1: Identify competitor analysis type (select Actor)
- [ ] Step 2: Fetch Actor schema via mcpc
- [ ] Step 3: Ask user preferences (format, filename)
- [ ] Step 4: Run the analysis script
- [ ] Step 5: Summarize findings
步骤 1:确定竞争对手分析类型
根据分析需求选择合适的 Actor:
| 用户需求 | Actor ID | 最适合的用途 |
|---|---|---|
| 竞争对手业务数据 | compass/crawler-google-places | 位置分析 |
| 竞争对手联系方式发现 | poidata/google-maps-email-extractor | 提取电子邮件 |
| 功能基准测试 | compass/google-maps-extractor | 详细业务数据 |
| 竞争对手评价分析 | compass/Google-Maps-Reviews-Scraper | 评价对比 |
| 酒店竞争对手数据 | voyager/booking-scraper | 酒店基准测试 |
| 酒店评价对比 | voyager/booking-reviews-scraper | 评价分析 |
| 竞争对手广告策略 | apify/facebook-ads-scraper | 广告创意分析 |
| 竞争对手主页指标 | apify/facebook-pages-scraper | 主页表现 |
| 竞争对手内容分析 | apify/facebook-posts-scraper | 帖子策略 |
| 竞争对手 Reels 表现 | apify/facebook-reels-scraper | Reels 分析 |
| 竞争对手受众分析 | apify/facebook-comments-scraper | 评论情绪 |
| 竞争对手活动监控 | apify/facebook-events-scraper | 活动跟踪 |
| 竞争对手受众重合度 | apify/facebook-followers-following-scraper | 粉丝分析 |
| 竞争对手评价基准测试 | apify/facebook-reviews-scraper | 评价对比 |
| 竞争对手广告监控 | apify/facebook-search-scraper | 广告发现 |
| 竞争对手个人资料指标 | apify/instagram-profile-scraper | 个人资料分析 |
| 竞争对手内容监控 | apify/instagram-post-scraper | 帖子跟踪 |
| 竞争对手互动分析 | apify/instagram-comment-scraper | 评论分析 |
| 竞争对手 Reels 表现 | apify/instagram-reel-scraper | Reel 指标 |
| 竞争对手增长跟踪 | apify/instagram-followers-count-scraper | 粉丝跟踪 |
| 全面的竞争对手数据 | apify/instagram-scraper | 全面分析 |
| 基于 API 的竞争对手分析 | apify/instagram-api-scraper | API 访问 |
| 竞争对手视频分析 | streamers/youtube-scraper | 视频指标 |
| 竞争对手情绪分析 | streamers/youtube-comments-scraper | 评论情绪 |
| 竞争对手频道指标 | streamers/youtube-channel-scraper | 频道分析 |
| TikTok 竞争对手分析 | clockworks/tiktok-scraper | TikTok 数据 |
| 竞争对手视频策略 | clockworks/tiktok-video-scraper | 视频分析 |
| 竞争对手 TikTok 个人资料 | clockworks/tiktok-profile-scraper | 个人资料数据 |
步骤 2:获取 Actor 架构
使用 mcpc 动态获取 Actor 的输入架构和详情:
export $(grep APIFY_TOKEN .env | xargs) && mcpc --json mcp.apify.com --header "Authorization: Bearer $APIFY_TOKEN" tools-call fetch-actor-details actor:="ACTOR_ID" | jq -r ".content"
将 ACTOR_ID 替换为选定的 Actor(例如 compass/crawler-google-places)。
这会返回:
- Actor 描述和 README
- 必需和可选输入参数
- 输出字段(如有)
步骤 3:询问用户偏好
运行前,询问:
- 输出格式:
- 快速回答 - 在聊天中显示前几条结果(不保存文件)
- CSV - 导出全部字段
- JSON - 以 JSON 格式完整导出
- 结果数量:根据用例性质确定
步骤 4:运行脚本
快速回答(在聊天中显示,不生成文件):
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
--actor "ACTOR_ID" \
--input 'JSON_INPUT'
CSV:
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
--actor "ACTOR_ID" \
--input 'JSON_INPUT' \
--output YYYY-MM-DD_OUTPUT_FILE.csv \
--format csv
JSON:
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
--actor "ACTOR_ID" \
--input 'JSON_INPUT' \
--output YYYY-MM-DD_OUTPUT_FILE.json \
--format json
步骤 5:总结发现
完成后,报告:
- 已分析的竞争对手数量
- 文件位置和名称
- 关键竞争洞察
- 建议的后续步骤(深入分析、基准测试)
错误处理
APIFY_TOKEN not found - 请用户创建包含 APIFY_TOKEN=your_token 的 .env
mcpc not found - 请用户安装 npm install -g @apify/mcpc
Actor not found - 检查 Actor ID 拼写
Run FAILED - 请用户检查错误输出中的 Apify 控制台链接
Timeout - 减少输入大小或增加 --timeout
评论
支持 Markdown