Community研究与数据分析github.com

apify/apify-actor-development

开发、调试和部署 Apify Actor——用于网页抓取、自动化和数据处理的无服务器云端程序。适合在创建新 Actor、修改现有 Actor 或排查 Actor 代码时使用。

apify-actor-development 是什么?

该技能专注于 Apify Actors 的完整开发周期,包括创建、调试和部署无服务器云端程序,应用于网页抓取、自动化和数据处理场景。它适用于多种 AI 代理平台,如 Claude Code、Cursor 和 Codex,通过 Apollo 框架简化 Actor 开发流程。技能基于 SKILL.md 文档,指导开发者使用 JavaScript 或 TypeScript 编写 Actor 代码,管理输入输出、集成代理和存储,并利用 Apify 平台进行云端运行。其优势在于提供结构化模板和错误处理机制,帮助用户快速迭代和发布可靠的 Web 自动化任务,同时支持本地测试与云端无缝同步。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/apify/agent-skills/tree/main/skills/apify-actor-development

Installed? Explore more 研究与数据分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

apify-actor-development 是做什么的?

开发、调试和部署 Apify Actor——用于网页抓取、自动化和数据处理的无服务器云端程序。适合在创建新 Actor、修改现有 Actor 或排查 Actor 代码时使用。

概述

本技能为 Apify Actor 开发者提供了一套完整的工具和指南,涵盖从项目初始化到云端部署的全过程。Actor 是采用 JavaScript 或 TypeScript 编写的无服务器云程序,专为网页抓取、浏览器自动化和数据转换等任务而设计。

功能

  • 创建新 Actor:使用预设模板快速启动项目。
  • 本地开发与调试:利用 Apollo 框架在本地环境中编写和测试代码。
  • 资源管理:处理输入 schema、输出数据集、请求队列和键值存储。
  • 集成工具:集成代理、浏览器和 HTTP 客户端(如 Cheerio 和 Puppeteer)。
  • 部署:将代码推送至 Apify 云平台并设定计划任务。

用法

# 安装 Apify CLI
npm install -g apify-cli

# 创建新 Actor
apify create my-actor

# 在本地运行 Actor
apify run

# 部署到云端
apify push

关键组件

  1. Apify CLI:用于项目管理和部署的命令行工具。
  2. Apollo 框架:提供结构化 Actor 开发方式的 JavaScript/TypeScript 库。
  3. Apify 存储:数据集、键值存储和请求队列。
  4. 代理管理:使用 Apify 代理轮换 IP 地址。

学习资源

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

apify/apify-actorization

Convert existing projects into Apify Actors - serverless cloud programs. Actorize JavaScript/TypeScript (SDK with Actor.init/exit), Python (async context manager), or any language (CLI wrapper). Use when migrating code to Apify, wrapping CLI tools as Actors, or adding Actor SDK to existing projects.

apify/apify-audience-analysis

Understand audience demographics, preferences, behavior patterns, and engagement quality across Facebook, Instagram, YouTube, and TikTok.

apify/apify-brand-reputation-monitoring

Track reviews, ratings, sentiment, and brand mentions across Google Maps, Booking.com, TripAdvisor, Facebook, Instagram, YouTube, and TikTok. Use when user asks to monitor brand reputation, analyze reviews, track mentions, or gather customer feedback.

apify/apify-competitor-intelligence

Analyze competitor strategies, content, pricing, ads, and market positioning across Google Maps, Booking.com, Facebook, Instagram, YouTube, and TikTok.

apify/apify-content-analytics

Track engagement metrics, measure campaign ROI, and analyze content performance across Instagram, Facebook, YouTube, and TikTok.

apify/apify-ecommerce

Scrape e-commerce data for pricing intelligence, customer reviews, and seller discovery across Amazon, Walmart, eBay, IKEA, and 50+ marketplaces. Use when user asks to monitor prices, track competitors, analyze reviews, research products, or find sellers.

apify/apify-generate-output-schema

Generate output schemas (dataset_schema.json, output_schema.json, key_value_store_schema.json) for an Apify Actor by analyzing its source code. Use when creating or updating Actor output schemas.

apify/apify-influencer-discovery

Find and evaluate influencers for brand partnerships, verify authenticity, and track collaboration performance across Instagram, Facebook, YouTube, and TikTok.

apify/apify-lead-generation

Generates B2B/B2C leads by scraping Google Maps, websites, Instagram, TikTok, Facebook, LinkedIn, YouTube, and Google Search. Use when user asks to find leads, prospects, businesses, build lead lists, enrich contacts, or scrape profiles for sales outreach.

apify/apify-market-research

Analyze market conditions, geographic opportunities, pricing, consumer behavior, and product validation across Google Maps, Facebook, Instagram, Booking.com, and TripAdvisor.

apify/apify-sdk-integration

Integrate Apify into an existing JavaScript/TypeScript or Python application using the apify-client package. Use when adding web scraping, automation, or data extraction capabilities to an existing app via the Apify API.

apify/apify-trend-analysis

Discover and track emerging trends across Google Trends, Instagram, Facebook, YouTube, and TikTok to inform content strategy.

apify/apify-ultimate-scraper

Universal AI-powered web scraper for any platform. Scrape data from Instagram, Facebook, TikTok, YouTube, LinkedIn, X/Twitter, Google Maps, Google Search, Google Trends, Reddit, Airbnb, Yelp, and 15+ more platforms. Use for lead generation, brand monitoring, competitor analysis, influencer discovery, trend research, content analytics, audience analysis, review analysis, SEO intelligence, recruitment, or any data extraction task.

相关技能