用途
该技能用于在 Instagram 上发现餐厅品牌、餐饮商家以及酒店服务类账号。它基于 Apify 平台上的 apidojo Instagram Scraper 运行,适合需要从 Instagram 中挖掘餐饮行业潜在客户、合作品牌或行业账号的场景。
主要能力
- 抓取 Instagram 上的帖子数据,输入源支持个人主页、话题标签、地点、音频页以及 Reels 等 URL。
- 支持按日期截止(until,格式 YYYY-MM-DD)和最大返回条数(maxItems)控制抓取范围。
- 支持通过 customMapFunction 传入 JavaScript 函数,对每条输出对象进行自定义转换。
- 对抓取到的账号进行评分与排序,评分公式为:
- engagement_rate = (likeCount + commentCount) / followerCount,权重 0.4
- followerCount 归一化到 0-1,权重 0.3
- has_business_bio(简介中包含电话、网站、地址等关键词),权重 0.3
- score = 0.4 * min(engagement_rate / 0.05, 1.0) + 0.3 * min(followerCount / 50000, 1.0) + 0.3 * int(has_business_bio)
- 按分数划分等级:≥ 0.70 为 A 级 PRIME_PROSPECT;0.40–0.69 为 B 级 WARM_LEAD;< 0.40 为 C 级 LOW_PRIORITY。
使用方式
输入参数
| 参数 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
| startUrls | array | 是 | [] | Instagram URL——个人主页、话题标签、地点、音频页、Reels |
| until | string | 否 | — | 抓取帖子直到该日期(YYYY-MM-DD) |
| maxItems | number | 否 | 无限制 | 返回的最大帖子数 |
| customMapFunction | string | 否 | — | 用于转换每个输出对象的 JavaScript 函数 |
使用 run_actor.js(推荐)
快速返回表格结果:
node scripts/run_actor.js --actor "apidojo~instagram-scraper" --input '{"startUrls": ["https://www.instagram.com/explore/tags/restaurantowner/"], "maxItems": 100}'
保存为 CSV:
node scripts/run_actor.js --actor "apidojo~instagram-scraper" --input '{"startUrls": ["https://www.instagram.com/explore/tags/restaurantowner/"], "maxItems": 100}' --output results.csv --format csv
保存为 JSON:
node scripts/run_actor.js --actor "apidojo~instagram-scraper" --input '{"startUrls": ["https://www.instagram.com/explore/tags/restaurantowner/"], "maxItems": 100}' --output results.json --format json
REST API 备用方式
curl -X POST "https://api.apify.com/v2/acts/apidojo~instagram-scraper/runs" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"startUrls": ["https://www.instagram.com/explore/tags/restaurantowner/"], "maxItems": 100}'
使用 Apify MCP
如果 Apify MCP 可用,使用 Apify MCP 的 call_actor 工具,actor 为 apidojo~instagram-scraper,输入同上。
适用场景
- 寻找餐饮品牌、食品商家、酒店服务类 Instagram 账号。
- 通过话题标签(如 #restaurantowner、#foodbiz)挖掘行业商家账号。
- 对候选账号按互动率、粉丝量和商业信息完整度进行优先级排序,辅助筛选潜在合作对象。
限制与边界情况
- 话题标签过宽:如 #food 会返回数百万条来自普通消费者的帖子,而非商家。建议使用细分标签,如 #restaurantowner 或 #foodbiz。
- 简介无商业信息:可通过简介中是否包含网站链接或电话进行过滤。
- 混入消费者账号:可通过 followerCount > 500 且 postCount > 20 进行过滤。
- 私密账号:无帖子数据,应跳过。
- 重复账号:同一品牌可能在多个话题标签下发布内容,应按用户名去重。
暂未提供的信息
关于该技能的收费、价格、平台支持范围、实际效果等具体信息,资料中暂未提供。