SuperAPI AI 工具集

instagram-lead-scraper

营销与增长

查看项目

更新于 10-16 09:16

技能介绍

Instagram Lead Scraper 是一个用于抓取 Instagram 帖子点赞用户线索的技能工具。它通过 Apify 的 datadoping/instagram-likes-scraper actor(Actor ID:WxPRaG9gfg5KZ4gY1)实现,无需 Instagram 登录或 cookies。

用途 该工具的主要用途是:给定一个或多个 Instagram 帖子 URL,抓取对这些帖子点赞的用户,并将这些用户作为潜在客户线索(leads)存储到数据库中。适合需要从特定帖子(例如竞品帖子)中收集潜在客户名单的场景。

主要能力

  • 接受一个或多个 Instagram 帖子 URL 作为输入。
  • 调用 Apify actor WxPRaG9gfg5KZ4gY1,传入参数 { posts: [...urls], max_count: 1000 }。
  • 通过分页获取全部结果。
  • 将线索插入 instagram_leads 数据库表,按用户名(username)去重,重复项会被静默跳过。
  • 输出字段包括:username、full_name、id、profile_pic_url、is_verified、is_private、liked_post、post_url、total_likes。

使用方式 通过命令行运行脚本,示例命令如下:

从一个或多个帖子抓取点赞者

node skills/instagram-lead-scraper/scripts/instagram-lead-scraper.js --posts "https://www.instagram.com/p/ABC123/,https://www.instagram.com/p/DEF456/"

指定活动名称

node skills/instagram-lead-scraper/scripts/instagram-lead-scraper.js --posts "https://www.instagram.com/p/ABC123/" --campaign "competitor_likers"

试运行(不写入数据库)

node skills/instagram-lead-scraper/scripts/instagram-lead-scraper.js --posts "https://www.instagram.com/p/ABC123/" --dry-run

环境变量

  • APIFY_API_KEY — 必需。
  • INSFORGE_CONNECTION_STRING — 写入数据库时必需。

数据库 插入到 instagram_leads 表,包含字段:username、full_name、profile_url、profile_picture_url、instagram_id、is_verified、source_photo_url、scraped_at、campaign_name。username 上有唯一约束,重复项会被静默跳过。

适用场景 适用于需要从 Instagram 帖子点赞者中获取潜在客户线索的营销或增长场景,例如抓取竞品帖子的点赞用户以建立联系名单。

限制

  • 需要 Apify API Key 才能调用 actor。
  • 写入数据库需要 INSFORGE_CONNECTION_STRING。
  • 关于费用、价格、平台支持范围、抓取效果等具体信息,资料中暂未提供。