tracking-product-launch-buzz-on-twitter
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTracking Product Launch Buzz On Twitter
跟踪Twitter上的产品发布热度
Executes tracking product launch buzz on twitter using apidojo scrapers. Part of the apidojo intelligence skills library.
借助apidojo爬虫实现Twitter上产品发布热度的跟踪。属于apidojo智能技能库的一部分。
Prerequisites
前置条件
- environment variable set
APIFY_TOKEN - Optional: Apify MCP server installed
- 设置环境变量
APIFY_TOKEN - 可选:安装Apify MCP服务器
Inputs
输入参数
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| array | ✅ | | Twitter advanced search queries (e.g. |
| string | Optional | | Sort order: |
| string | Optional | — | ISO 639-1 language code (e.g. |
| number | Optional | Unlimited | Maximum tweets to return |
| boolean | Optional | | Only tweets from verified users |
| boolean | Optional | | Only Twitter Blue subscribers |
| boolean | Optional | | Only tweets with images |
| boolean | Optional | | Only tweets with videos |
| boolean | Optional | | Only quote tweets |
| string | Optional | — | Filter to a specific author handle |
| string | Optional | — | Tweets replying to a specific handle |
| string | Optional | — | Tweets mentioning a specific handle |
| string | Optional | — | Tweets near a location |
| string | Optional | — | Radius around geotaggedNear |
| string | Optional | — | Lat/lng + radius string |
| string | Optional | — | Tweets tagged with a place |
| number | Optional | — | Minimum retweet count |
| number | Optional | — | Minimum like count |
| number | Optional | — | Minimum reply count |
| string | Optional | — | Tweets after this date (YYYY-MM-DD) |
| string | Optional | — | Tweets before this date (YYYY-MM-DD) |
| boolean | Optional | | Add the matched search term to each tweet |
| string | Optional | — | JavaScript function to transform each output object |
| 参数 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
| 数组 | ✅ | | Twitter高级搜索查询语句(例如: |
| 字符串 | 可选 | | 排序方式: |
| 字符串 | 可选 | — | ISO 639-1语言代码(例如: |
| 数字 | 可选 | 无限制 | 返回的最大推文数量 |
| 布尔值 | 可选 | | 仅返回认证用户的推文 |
| 布尔值 | 可选 | | 仅返回Twitter Blue订阅用户的推文 |
| 布尔值 | 可选 | | 仅返回带图片的推文 |
| 布尔值 | 可选 | | 仅返回带视频的推文 |
| 布尔值 | 可选 | | 仅返回引用推文 |
| 字符串 | 可选 | — | 筛选特定作者的推文(账号名) |
| 字符串 | 可选 | — | 筛选回复特定账号的推文 |
| 字符串 | 可选 | — | 筛选提及特定账号的推文 |
| 字符串 | 可选 | — | 筛选指定地点附近的推文 |
| 字符串 | 可选 | — | |
| 字符串 | 可选 | — | 经纬度+半径字符串 |
| 字符串 | 可选 | — | 筛选标记了特定地点的推文 |
| 数字 | 可选 | — | 推文的最低转发量 |
| 数字 | 可选 | — | 推文的最低点赞量 |
| 数字 | 可选 | — | 推文的最低回复量 |
| 字符串 | 可选 | — | 筛选该日期之后的推文(格式:YYYY-MM-DD) |
| 字符串 | 可选 | — | 筛选该日期之前的推文(格式:YYYY-MM-DD) |
| 布尔值 | 可选 | | 在每条推文中添加匹配的搜索关键词 |
| 字符串 | 可选 | — | 用于转换输出对象的JavaScript函数 |
Workflow
工作流程
Progress:
- [ ] Step 1: Define parameters
- [ ] Step 2: Run tweet-scraper
- [ ] Step 3: Filter and classify results
- [ ] Step 4: Score by quality and relevance
- [ ] Step 5: Deliver output进度:
- [ ] 步骤1:定义参数
- [ ] 步骤2:运行推文爬虫
- [ ] 步骤3:筛选并分类结果
- [ ] 步骤4:按质量和相关性评分
- [ ] 步骤5:交付输出结果Step 2: Run the Actor
步骤2:运行Actor
Recommended — run_actor.js (handles waiting, output, and file saving automatically):
bash
undefined推荐方式 — run_actor.js(自动处理等待、输出和文件保存):
bash
undefinedQuick answer (prints table to chat)
快速输出(在聊天界面打印表格)
node scripts/run_actor.js
--actor "apidojo~tweet-scraper"
--input '{"param": "value"}'
--actor "apidojo~tweet-scraper"
--input '{"param": "value"}'
node scripts/run_actor.js
--actor "apidojo~tweet-scraper"
--input '{"param": "value"}'
--actor "apidojo~tweet-scraper"
--input '{"param": "value"}'
Save as CSV
保存为CSV格式
node scripts/run_actor.js
--actor "apidojo~tweet-scraper"
--input '{"param": "value"}'
--output YYYY-MM-DD_results.csv --format csv
--actor "apidojo~tweet-scraper"
--input '{"param": "value"}'
--output YYYY-MM-DD_results.csv --format csv
node scripts/run_actor.js
--actor "apidojo~tweet-scraper"
--input '{"param": "value"}'
--output YYYY-MM-DD_results.csv --format csv
--actor "apidojo~tweet-scraper"
--input '{"param": "value"}'
--output YYYY-MM-DD_results.csv --format csv
Save as JSON
保存为JSON格式
node scripts/run_actor.js
--actor "apidojo~tweet-scraper"
--input '{"param": "value"}'
--output YYYY-MM-DD_results.json --format json
--actor "apidojo~tweet-scraper"
--input '{"param": "value"}'
--output YYYY-MM-DD_results.json --format json
> `APIFY_TOKEN` must be set in environment or `.env` file.
**If Apify MCP is available:**Tool: apify:run-actor
Actor: "apidojo~tweet-scraper"
Input:
{
"searchTerms": ["[PRODUCT] launch", "[PRODUCT] just launched", "new [PRODUCT]", "[PRODUCT] release"],
"maxItems": 100
}
**REST API fallback:**
```bash
curl -X POST \
"https://api.apify.com/v2/acts/apidojo~tweet-scraper/runs?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchTerms": ["[PRODUCT] launch", "[PRODUCT] just launched", "new [PRODUCT]", "[PRODUCT] release"], "maxItems": 100}'Wait for . Fetch dataset:
SUCCEEDEDbash
curl "https://api.apify.com/v2/actor-runs/$RUN_ID/dataset/items?token=$APIFY_TOKEN"node scripts/run_actor.js
--actor "apidojo~tweet-scraper"
--input '{"param": "value"}'
--output YYYY-MM-DD_results.json --format json
--actor "apidojo~tweet-scraper"
--input '{"param": "value"}'
--output YYYY-MM-DD_results.json --format json
> 必须在环境变量或`.env`文件中设置`APIFY_TOKEN`。
**若Apify MCP可用:**工具: apify:run-actor
Actor: "apidojo~tweet-scraper"
输入:
{
"searchTerms": ["[PRODUCT] launch", "[PRODUCT] just launched", "new [PRODUCT]", "[PRODUCT] release"],
"maxItems": 100
}
**REST API备选方案:**
```bash
curl -X POST \
"https://api.apify.com/v2/acts/apidojo~tweet-scraper/runs?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchTerms": ["[PRODUCT] launch", "[PRODUCT] just launched", "new [PRODUCT]", "[PRODUCT] release"], "maxItems": 100}'等待任务状态变为。获取数据集:
SUCCEEDEDbash
curl "https://api.apify.com/v2/actor-runs/$RUN_ID/dataset/items?token=$APIFY_TOKEN"Step 3: Classify Results
步骤3:结果分类
classification: VIRAL (> 1000 mentions/hour) | HIGH_BUZZ (100-1000/hour) | MODERATE (10-100/hour) | LOW (< 10/hour)分类标准: VIRAL(每小时提及量>1000)| HIGH_BUZZ(每小时提及量100-1000)| MODERATE(每小时提及量10-100)| LOW(每小时提及量<10)Step 4: Score Each Result
步骤4:结果评分
score = buzz_score = tweet_volume_24h * 0.35 + weighted_sentiment * 0.35 + influencer_mention_count * 0.30score = buzz_score = 24小时推文数量 * 0.35 + 加权情感值 * 0.35 + 意见领袖提及次数 * 0.30Step 5: Edge Cases
步骤5:边缘情况处理
- Product launch tweets spike within 48h then decay — run within 24-72h of launch for peak signal; old launches produce misleading low volume
Additional fallbacks:
- < 20 results: Broaden search terms; remove secondary filters
- No results: Verify the search terms are correct; try alternate phrasings
- Data quality issues: Remove entries with missing key fields; note count in output
- 产品发布推文在48小时内达到峰值后逐渐减少——建议在发布后24-72小时内运行以获取最准确的数据;针对旧发布进行跟踪会得到偏低的推文数量,数据易产生误导
其他备选方案:
- 结果少于20条:扩大搜索关键词范围;移除次要筛选条件
- 无结果返回:验证搜索关键词是否正确;尝试替换不同的表述方式
- 数据质量问题:移除缺失关键字段的条目;在输出中注明移除的数量
Output Format
输出格式
undefinedundefinedTracking Product Launch Buzz On Twitter
跟踪Twitter上的产品发布热度
Results: [N] | Date: [DATE]
| # | [Key Field] | [Metric 1] | [Metric 2] | [Classification] | [Score] |
|---|---|---|---|---|---|
| 1 | [value] | [value] | [value] | [type] | [0.XX] |
结果数量: [N] | 日期: [DATE]
| 序号 | [关键字段] | [指标1] | [指标2] | [分类] | [评分] |
|---|---|---|---|---|---|
| 1 | [数值] | [数值] | [数值] | [类型] | [0.XX] |
Summary
总结
Top result: [description]
Key finding: [insight]
undefined排名第一的结果: [描述]
核心发现: [洞察]
undefinedTroubleshooting
故障排除
Too few results: Broaden the primary search term; remove restrictive filters.
Low quality results: Apply minimum score threshold (≥ 0.50) to filter noise.
Actor fails to run: Verify API key; check actor status at apify.com/apidojo.
结果数量过少:扩大核心搜索关键词的范围;移除限制性筛选条件。
结果质量低下:设置最低评分阈值(≥0.50)以过滤无效信息。
Actor运行失败:验证API密钥是否正确;在apify.com/apidojo查看Actor状态。