mcpField
A
analyzing-competitor-twitter-profile-content

analyzing-competitor-twitter-profile-content

github.com/apidojo-io营销与增长1815 次安装24 周前更新
代码仓库

关于 analyzing-competitor-twitter-profile-content

用于分析竞争对手 Twitter 个人资料内容的技能,可抓取指定账号的推文并按互动、浏览量和媒体情况评估影响力。支持时间范围、回复和图片等筛选。

主要功能

  1. 01按账号或资料链接抓取推文
  2. 02按日期范围筛选
  3. 03筛选图片、转推和回复
  4. 04按互动量、浏览量及媒体评分
  5. 05将推文分为三个影响力等级

适用场景

  1. 01比较多个竞争对手的推文表现
  2. 02筛选高互动或含媒体的推文
  3. 03整理指定时期的竞争情报

MCP 相关

可通过 Apify MCP 的 call_actor 工具调用 apidojo~twitter-profile-scraper。

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/apidojo-io/apidojo-skills --skill analyzing-competitor-twitter-profile-content

安装后在 Claude Code 中输入/analyzing-competitor-twitter-profile-content确认已加载。

详细介绍

分析竞争对手的 Twitter 个人主页内容


输入

参数类型必填默认值备注
startUrls数组可选[]Twitter 个人主页 URL(x.com 或 twitter.com 格式)
twitterHandles数组可选[]Twitter 用户名(不带 @)
start字符串可选—此日期之后的推文(YYYY-MM-DD 或 YYYY-MM-DD_HH:MM:SS_UTC)
end字符串可选—此日期之前的推文(YYYY-MM-DD 或 YYYY-MM-DD_HH:MM:SS_UTC)
includeNativeRetweets布尔值可选false在结果中包含原生转推
onlyImages布尔值可选false仅包含带图片的推文
getReplies布尔值可选false包含推文回复
minReplyCount数字可选—最低回复数阈值
getAboutData布尔值可选false获取完整的个人主页简介数据
maxItems数字可选无限返回的最大推文数
customMapFunction字符串可选—用于转换每个输出对象的 JavaScript 函数

如何运行

使用 run_actor.js(推荐)
# Quick answer (table)
node scripts/run_actor.js --actor "apidojo~twitter-profile-scraper" --input '{"twitterHandles": ["competitor_handle"], "maxItems": 100}'

# Save as CSV
node scripts/run_actor.js --actor "apidojo~twitter-profile-scraper" --input '{"twitterHandles": ["competitor_handle"], "maxItems": 100}' --output results.csv --format csv

# Save as JSON
node scripts/run_actor.js --actor "apidojo~twitter-profile-scraper" --input '{"twitterHandles": ["competitor_handle"], "maxItems": 100}' --output results.json --format json
REST API 备用方案
curl -X POST "https://api.apify.com/v2/acts/apidojo~twitter-profile-scraper/runs" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"twitterHandles": ["competitor_handle"], "maxItems": 100}'

如果 Apify MCP 可用: 使用 Apify MCP 的 call_actor 工具,指定 actor apidojo~twitter-profile-scraper 和上述输入。


评分与排名

为每条推文计算竞争情报价值评分:

  • engagement_total = likeCount + retweetCount + replyCount + quoteCount → 归一化至 0-1(上限为 10K),权重 0.50
  • viewCount → 归一化至 0-1(上限为 500K),权重 0.30
  • has_media(包含图片或视频)→ 0 或 1,权重 0.20
score = 0.50 * min(engagement_total / 10000, 1.0) + 0.30 * min(viewCount / 500000, 1.0) + 0.20 * int(has_media)

分类

评分等级标签
≥ 0.70AHIGH_IMPACT_TWEET
0.40–0.69BNOTABLE_TWEET
< 0.40CLOW_ENGAGEMENT

特殊情况

  • 私密账号:返回 0 条推文。请检查竞争对手是否锁定了账号。
  • 至少 40 条推文:基础定价包含前 40 条。超出部分按每条推文 $0.0004 收费。
  • 包含转推:结果包含 RT。可通过检查文本是否以 "RT @" 开头进行筛选。
  • 日期范围内结果较少:有些账号发推较少——请扩大日期范围或移除筛选条件。
  • 多个竞争对手:分别针对每个用户名运行,并合并数据集。

评论

支持 Markdown