Apify Automation
它能做什么
这个工具可以帮你借助 Apify 自动收集网络上的信息。你可以运行一种称为“机器人”(即 Actor)的程序,它们会浏览网站并提取数据,比如商品列表或新闻文章。
适用场景
- ✓当你需要从某个特定网站收集大量数据时。
- ✓当你想获取经常更新的网站上的最新信息时。
- ✓当你希望一次性整理并保存多个网页的数据时。
技能链接
https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/apify-automation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“运行那个收集纽约餐厅信息的机器人,并给我看前 50 条结果。”
每周 5 个新技能,1 分钟读完。
工作原理
你告诉工具要使用哪个“机器人”(即 Actor),以及它应该查找什么信息。工具会运行它,并把整理好的数据返回给你。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Apify Automation
Run Apify web scraping Actors and manage datasets directly from Claude Code. Execute crawlers synchronously or asynchronously, retrieve structured data, create reusable tasks, and inspect run logs without leaving your terminal.
Toolkit docs: composio.dev/toolkits/apify
Setup
- Add the Composio MCP server to your configuration:
https://rube.app/mcp - Connect your Apify account when prompted. The agent will provide an authentication link.
- Browse available Actors at apify.com/store. Each Actor has its own unique input schema -- always check the Actor's documentation before running.
Core Workflows
1. Run an Actor Synchronously and Get Results
Execute an Actor and immediately retrieve its dataset items in a single call. Best for quick scraping jobs.
Tool: APIFY_RUN_ACTOR_SYNC_GET_DATASET_ITEMS
Key parameters:
actorId(required) -- Actor ID in formatusername/actor-name(e.g.,compass/crawler-google-places)input-- JSON input object matching the Actor's schema. Each Actor has unique field names -- check apify.com/store for the exact schema.limit-- max items to returnoffset-- skip items for paginationformat--json(default),csv,jsonl,html,xlsx,xmltimeout-- run timeout in secondswaitForFinish-- max wait time (0-300 seconds)fields-- comma-separated list of fields to includeomit-- comma-separated list of fields to exclude
Example prompt: "Run the Google Places scraper for 'restaurants in New York' and return the first 50 results"
2. Run an Actor Asynchronously
Trigger an Actor run without waiting for completion. Use for long-running scraping jobs.
Tool: APIFY_RUN_ACTOR
Key parameters:
actorId(required) -- Actor slug or IDbody-- JSON input object for the Actormemory-- memory limit in MB (must be power of 2, minimum 128)timeout-- run timeout in secondsmaxItems-- cap on returned itemsbuild-- specific build tag (e.g.,latest,beta)
Follow up with APIFY_GET_DATASET_ITEMS to retrieve results using the run's datasetId.
Example prompt: "Start the web scraper Actor for example.com asynchronously with 1024MB memory"
3. Retrieve Dataset Items
Fetch data from a specific dataset with pagination, field selection, and filtering.
Tool: APIFY_GET_DATASET_ITEMS
Key parameters:
datasetId(required) -- dataset identifierlimit(default/max 1000) -- items per pageoffset(default 0) -- pagination offsetformat--json(recommended),csv,xlsxfields-- include only specific fieldsomit-- exclude specific fieldsclean-- remove Apify-specific metadatadesc-- reverse order (newest first)
Example prompt: "Get the first 500 items from dataset myDatasetId in JSON format"
4. Inspect Actor Details
View Actor metadata, input schema, and configuration before running it.
Tool: APIFY_GET_ACTOR
Key parameters:
actorId(required) -- Actor ID in formatusername/actor-nameor hex ID
Example prompt: "Show me the details and input schema for the apify/web-scraper Actor"
5. Create Reusable Tasks
Configure reusable Actor tasks with preset inputs for recurring scraping jobs.
Tool: APIFY_CREATE_TASK
Configure a task once, then trigger it repeatedly with consistent input parameters. Useful for scheduled or recurring data collection workflows.
Example prompt: "Create an Apify task for the Google Search scraper with default query 'AI startups' and US location"
6. Manage Runs and Datasets
List Actor runs, browse datasets, and inspect run details for monitoring and debugging.
Tools: APIFY_GET_LIST_OF_RUNS, APIFY_DATASETS_GET, APIFY_DATASET_GET, APIFY_GET_LOG
For listing runs:
- Filter by Actor and optionally by status
- Get
datasetIdfrom run details for data retrieval
For dataset management:
APIFY_DATASETS_GET-- list all your datasets with paginationAPIFY_DATASET_GET-- get metadata for a specific dataset
For debugging:
APIFY_GET_LOG-- retrieve execution logs for a run or build
Example prompt: "List the last 10 runs for the web scraper Actor and show logs for the most recent one"
Known Pitfalls
…
常见问题
什么是 Actor?
Actor 是 Apify 平台上预先做好的程序,知道如何浏览网站并提取特定信息。你可以把它们理解成专门负责收集数据的机器人。
我怎么知道一个 Actor 能收集哪些数据?
每个 Actor 都有一份说明,以及一个“输入结构”(input schema),会告诉你它运行需要哪些信息,以及能提供什么数据。你可以在 Apify 网站上查看。
我可以从任何网站收集数据吗?
很多网站都可以,但这取决于是否有现成的 Actor 适用,或者你能否配置一个可用的 Actor。有高级防护的网站可能会更难处理。
详情
作者的原始描述
Automate web scraping and data extraction with Apify -- run Actors, manage datasets, create reusable tasks, and retrieve crawl results through the Composio Apify integration.
热度
- GitHub 星标
- 77k
- 排名
- #1803
- 许可证
- —
- 更新时间
- 2026/9/18
评论
- …
同一仓库的更多技能
artifacts-builder
77k帮助你的智能体构建复杂的用户界面。它借助现代技术,创建功能丰富的交互式网页。
brand-guidelines
77k帮助你的智能体把官方品牌色和字体应用到各类材料中。适合需要体现公司视觉形象的场景,保持视觉统一。
canvas-design
77k让你的智能体创作 .png 和 .pdf 格式的原创视觉作品。当用户需要海报、艺术作品或其他静态设计时使用。
changelog-generator
77k帮助你的智能体根据代码提交记录撰写面向用户的更新说明。它能把技术内容转换成通俗易懂的文字。