PhantomBuster Skill
Control your PhantomBuster automation agents from the command line.
Setup
- 1. Get your API key from Workspace Settings
- Set the environment variable:
CODEBLOCK0
Usage
All commands use the bundled pb.py script in this skill's directory.
List Agents
See all your configured PhantomBuster agents.
CODEBLOCK1
Launch an Agent
Start a phantom by ID or name.
CODEBLOCK2
Get Agent Output
Fetch the results/output from the most recent run.
CODEBLOCK3
Check Agent Status
See if an agent is running, finished, or errored.
CODEBLOCK4
Abort Running Agent
Stop an agent that's currently running.
CODEBLOCK5
Get Agent Details
Full details about a specific agent.
CODEBLOCK6
Fetch Result Data
Download the actual result data (CSV) from an agent's latest run.
CODEBLOCK7
This downloads the result.csv file from the agent's S3 storage, perfect for integrating PhantomBuster data into your workflows.
Example Prompts
- - "List my PhantomBuster agents"
- "Launch my LinkedIn Sales Navigator scraper"
- "Get the output from agent 12345"
- "Check if my Twitter follower phantom is still running"
- "Abort the currently running agent"
Common Phantoms
PhantomBuster offers many pre-built automations:
- - LinkedIn Sales Navigator Search — Extract leads from searches
- LinkedIn Profile Scraper — Get profile data
- Twitter Follower Collector — Scrape followers
- Instagram Profile Scraper — Get IG profile data
- Google Maps Search Export — Extract business listings
Rate Limits
PhantomBuster has execution time limits based on your plan. The API itself is not heavily rate-limited, but agent execution consumes your plan's minutes.
PhantomBuster 技能
通过命令行控制你的 PhantomBuster 自动化代理。
设置
- 1. 从工作区设置获取你的 API 密钥
- 设置环境变量:
bash
export PHANTOMBUSTER
APIKEY=你的-api-密钥
使用方法
所有命令均使用本技能目录下附带的 pb.py 脚本。
列出代理
查看所有已配置的 PhantomBuster 代理。
bash
python3 pb.py list
python3 pb.py list --json # JSON 格式输出
启动代理
通过 ID 或名称启动一个幻影代理。
bash
python3 pb.py launch <代理-id>
python3 pb.py launch <代理-id> --argument {search: CEO fintech}
获取代理输出
获取最近一次运行的结果/输出。
bash
python3 pb.py output <代理-id>
python3 pb.py output <代理-id> --json # 原始 JSON
检查代理状态
查看代理是否正在运行、已完成或出错。
bash
python3 pb.py status <代理-id>
中止运行中的代理
停止当前正在运行的代理。
bash
python3 pb.py abort <代理-id>
获取代理详情
获取特定代理的完整信息。
bash
python3 pb.py get <代理-id>
获取结果数据
从代理的最新运行中下载实际结果数据(CSV)。
bash
python3 pb.py fetch-result <代理-id>
python3 pb.py fetch-result <代理-id> > output.csv
这将从代理的 S3 存储中下载 result.csv 文件,非常适合将 PhantomBuster 数据集成到你的工作流程中。
示例提示
- - 列出我的 PhantomBuster 代理
- 启动我的 LinkedIn Sales Navigator 爬取器
- 获取代理 12345 的输出
- 检查我的 Twitter 粉丝幻影是否仍在运行
- 中止当前正在运行的代理
常用幻影
PhantomBuster 提供许多预构建的自动化工具:
- - LinkedIn Sales Navigator 搜索 — 从搜索中提取潜在客户
- LinkedIn 个人资料爬取器 — 获取个人资料数据
- Twitter 粉丝收集器 — 爬取粉丝数据
- Instagram 个人资料爬取器 — 获取 IG 个人资料数据
- Google 地图搜索导出 — 提取商家列表
速率限制
PhantomBuster 根据你的套餐设有执行时间限制。API 本身没有严格的速率限制,但代理执行会消耗你套餐的分钟数。