跳到正文
Skillpedia
网页抓取77k · #1803

Apify Automation

它能做什么

这个工具可以帮你借助 Apify 自动收集网络上的信息。你可以运行一种称为“机器人”(即 Actor)的程序,它们会浏览网站并提取数据,比如商品列表或新闻文章。

适用场景

  • ✓当你需要从某个特定网站收集大量数据时。
  • ✓当你想获取经常更新的网站上的最新信息时。
  • ✓当你希望一次性整理并保存多个网页的数据时。

技能链接

https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/apify-automation/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/apify-automation/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Add the Composio MCP server to your configuration:
    https://rube.app/mcp
    
  2. Connect your Apify account when prompted. The agent will provide an authentication link.
  3. 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 format username/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 return
  • offset -- skip items for pagination
  • format -- json (default), csv, jsonl, html, xlsx, xml
  • timeout -- run timeout in seconds
  • waitForFinish -- max wait time (0-300 seconds)
  • fields -- comma-separated list of fields to include
  • omit -- 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 ID
  • body -- JSON input object for the Actor
  • memory -- memory limit in MB (must be power of 2, minimum 128)
  • timeout -- run timeout in seconds
  • maxItems -- cap on returned items
  • build -- 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 identifier
  • limit (default/max 1000) -- items per page
  • offset (default 0) -- pagination offset
  • format -- json (recommended), csv, xlsx
  • fields -- include only specific fields
  • omit -- exclude specific fields
  • clean -- remove Apify-specific metadata
  • desc -- 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 format username/actor-name or 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 datasetId from run details for data retrieval

For dataset management:

  • APIFY_DATASETS_GET -- list all your datasets with pagination
  • APIFY_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.

repo: ComposioHQ/awesome-claude-skills

热度

GitHub 星标
77k
排名
#1803
许可证
—
更新时间
2026/9/18

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能