Community编程与开发github.com

通用网页爬虫

通用的AI驱动网页爬虫,适用于任何平台。从Instagram、Facebook、TikTok、YouTube、LinkedIn、X/Twitter、谷歌地图、谷歌搜索、谷歌趋势、Reddit、Airbnb、Yelp等15+平台抓取数据。适用于潜在客户生成、品牌监控、竞争对手分析、KOL发现、趋势研究、内容分析、受众分析、评论分析、SEO情报、招聘或任何数据提取任务。

通用网页爬虫 是什么?

该技能是一个通用的AI驱动网页爬虫,通过Apify CLI从100多个Actor中提取数据,覆盖15+平台。它专为不需要特定平台认证的通用数据提取场景设计,支持潜在客户生成、品牌监控、竞争对手分析、KOL发现、趋势研究等多种用例。技能首先指导用户根据目标和平台选择合适的Actor,然后获取输入模式,最后配置并执行抓取任务。支持快速问答模式、大型任务分步执行,以及结果保存为CSV或JSON文件。技能还包含故障排除和错误记录,帮助用户避免常见陷阱。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/nehakanjamala/personal_website/tree/HEAD/.agents/skills/apify-ultimate-scraper

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

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

文档

通用网页爬虫 是做什么的?

通过Apify CLI从100多个Actor中提取数据的AI驱动工具,覆盖15+平台。

每条 apify 命令的规则:

  1. 传递 --json 以获得机器可读的输出(在CLI版本间保持稳定)。
  2. 传递 --user-agent apify-agent-skills/apify-ultimate-scraper 以进行遥测归属。
  3. 使用 2>/dev/null 重定向标准错误(标准错误包含会破坏JSON解析器的进度消息)。

先决条件

  • Apify CLI v1.5.0+(npm install -g apify-cli)
  • 已认证会话(见下文)

认证

如果CLI命令因认证错误失败,请使用以下方法之一进行认证:

  1. OAuth(交互式): apify login(打开浏览器)
  2. 环境变量: export APIFY_TOKEN=your_token_here
  3. 从.env文件: source .env(如果文件包含 APIFY_TOKEN=...)

生成令牌:https://console.apify.com/settings/integrations

工作流程

步骤1:理解目标并选择Actor

确定目标平台和用例。阅读 references/actor-index.md 以找到合适的Actor。

如果任务涉及多步骤管道,也请阅读匹配的工作流指南:

任务涉及...阅读
潜在客户、联系方式、电子邮件、B2Breferences/workflows/lead-generation.md
竞争对手、广告、定价references/workflows/competitive-intel.md
KOL、创作者references/workflows/influencer-vetting.md
品牌、提及、情感references/workflows/brand-monitoring.md
评论、评分、声誉references/workflows/review-analysis.md
SEO、SERP、爬取、内容、RAGreferences/workflows/content-and-seo.md
分析、互动、表现references/workflows/social-media-analytics.md
趋势、关键词、标签references/workflows/trend-research.md
招聘、人才搜索、候选人references/workflows/job-market-and-recruitment.md
房地产、房源、酒店references/workflows/real-estate-and-hospitality.md
价格监控、电子商务、产品references/workflows/ecommerce-price-monitoring.md
联系方式丰富、电子邮件提取references/workflows/contact-enrichment.md
知识库、RAG、LLM数据馈送references/workflows/knowledge-base-and-rag.md
公司研究、尽职调查references/workflows/company-research.md

如果在索引中未匹配到Actor,请动态搜索:

apify actors search "关键词" --user-agent apify-agent-skills/apify-ultimate-scraper --json --limit 10 2>/dev/null

从结果中:items[].username/items[].name(Actor ID)、items[].title、items[].stats.totalUsers30Days、items[].currentPricingInfo.pricingModel。

步骤2:获取Actor模式并检查陷阱

动态获取输入模式:

apify actors info "ACTOR_ID" --user-agent apify-agent-skills/apify-ultimate-scraper --input --json 2>/dev/null

同时阅读 references/gotchas.md,检查所选Actor的常见陷阱。

如需Actor文档:apify actors info "ACTOR_ID" --user-agent apify-agent-skills/apify-ultimate-scraper --readme

步骤3:配置并运行

跳过用户偏好 进行简单查询(例如,“Nike的关注者数”)。直接使用快速问答模式运行。

对于更大的任务,确认输出格式(快速问答/CSV/JSON)和结果数量。

标准运行(阻塞):

apify actors call "ACTOR_ID" --input-file input.json --user-agent apify-agent-skills/apify-ultimate-scraper --json 2>/dev/null

对于大型或复杂输入,首选 --input-file input.json。对于小型输入,可以使用内联JSON和shell引号:--input '{"maxItems":10}'。

从输出中:.id(运行ID)、.status、.defaultDatasetId、.stats.durationMillis

获取结果:

apify datasets get-items DATASET_ID --user-agent apify-agent-skills/apify-ultimate-scraper --format json

对于CSV:apify datasets get-items DATASET_ID --user-agent apify-agent-skills/apify-ultimate-scraper --format csv

快速问答模式: 将结果获取为JSON,选取前5条,在聊天中格式化呈现。

保存到文件: 获取结果,使用Write工具保存为 YYYY-MM-DD_描述性名称.csv 或 .json。

大规模/长时间运行的抓取:

apify actors start "ACTOR_ID" --input-file input.json --user-agent apify-agent-skills/apify-ultimate-scraper --json 2>/dev/null

轮询:apify runs info RUN_ID --user-agent apify-agent-skills/apify-ultimate-scraper --json 2>/dev/null(检查 .status 是否为 SUCCEEDED)。

步骤4:交付结果

报告:结果数量、文件位置(如果已保存)、关键数据字段和链接:

  • 数据集:https://console.apify.com/storage/datasets/DATASET_ID
  • 运行:https://console.apify.com/actors/runs/RUN_ID

对于多步骤工作流:根据工作流指南建议下一步管道步骤。

故障排除

常见错误和陷阱记录在 references/gotchas.md 中。在运行PPE(按事件付费)Actor之前请阅读该文件。

Individual skills in this repo

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

nehakanjamala/personal_website

This skill should be used when the user asks to "fix janky CSS animation", "make animation 60fps", "stop layout thrashing", "animate width/height/top/left smoothly", "convert animation to transform", "animate box-shadow performantly", "animate height auto", "FLIP animation", or "why is my scroll/hover animation choppy".

nehakanjamala/personal_website

This skill should be used when the user asks to "respect prefers-reduced-motion", "honor reduced motion", "make my animations accessible", "fix vestibular / motion-sickness issues", "add a useReducedMotion hook", "gate GSAP / Framer Motion / Lenis for reduced motion", or "meet WCAG 2.3.3 / C39". Provides tiered (not all-or-nothing) reduced-motion patterns in CSS and JS.

nehakanjamala/personal_website

Create, modify, debug, and deploy Apify Actors, and write their input and output schemas. Use when building an Actor from scratch, changing or troubleshooting Actor code, generating or updating .actor schema files, or pushing an Actor to the Apify platform. To wrap an existing non-Actor project, use apify-actorization instead.

nehakanjamala/personal_website

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.

nehakanjamala/personal_website

Deprecated. Output schema generation moved to the apify-actor-development skill; prefer that skill whenever it is available.

nehakanjamala/personal_website

Design and build an official Apify integration for a company's product - workflow-automation apps (Zapier/n8n-style), AI agent plugins (coding-agent skills+MCP bundles or OpenClaw/Hermes-style harnesses), AI framework packages (LangChain/LlamaIndex-style), or direct application clients via apify-client. Use when planning, creating, or reviewing an integration that exposes Apify Actors, runs, datasets, or key-value stores inside another product.

nehakanjamala/personal_website

This skill should be used when the user asks to "add a glassmorphism effect", "frosted glass UI", "Apple liquid glass style", "frosted blur card", "translucent glass panel animation", "make a frosted nav bar", "build a glass modal/dialog", "animate a glass card on hover", or "add a refracting liquid-glass hero". Covers frosted translucent panels with backdrop-filter blur, edge/specular highlights, SVG liquid-glass refraction, motion on hover/scroll/enter, and accessible reduced-transparency fallbacks.

nehakanjamala/personal_website

This skill should be used when the user asks to "build a scroll animation", "add ScrollTrigger", "pin a section while scrolling", "scrub an animation to scroll", "create a hero timeline", "do a horizontal scroll section", "split text and animate words", "animate a layout change with GSAP Flip", "sync ScrollTrigger with Lenis", "Lenis smooth scroll jittery", "ScrollTrigger markers drift", "ScrollTrigger pins break with Lenis/Locomotive", or "set up smooth scroll with GSAP pinning". Covers GSAP timelines, ScrollTrigger, SplitText, Flip, and Lenis/Locomotive smooth-scroll sync for code-driven web motion.

nehakanjamala/personal_website

This skill should be used when the user asks to "add a Lottie animation", "play a .lottie or .json animation", "integrate a Bodymovin/After Effects animation on web or mobile", "control Lottie playback / segments", "make a scroll-driven Lottie", "recolor a Lottie at runtime", or "export an AE animation to Lottie". Covers dotLottie/lottie-web integration, playback control, interactivity, theming, and the AE export checklist.

nehakanjamala/personal_website

This skill should be used when the user asks to "add a hover/press effect", "animate a toggle or switch", "build an animated like button", "make a toast/snackbar slide in", "animate a drawer or modal", "animate list reordering or add/remove", "do a shared-element layout transition", or "polish UI feedback". Covers UI motion with Framer Motion (motion/react) and modern CSS.

nehakanjamala/personal_website

This skill should be used when the user asks to "animate page or route transitions", "add a page transition or crossfade between views", "animate route changes in Next.js App Router", "use the View Transitions API", "AnimatePresence exit doesn't fire on navigation", or "Framer Motion exit animation not working / exit animation before unmount in Next.js". Covers enter/exit page-transition animation with the View Transitions API and Framer Motion, for Next.js App Router and general SPA routing.

nehakanjamala/personal_website

Scrape web pages using Scrapling with anti-bot bypass (like Cloudflare Turnstile), stealth headless browsing, spiders framework, adaptive scraping, and JavaScript rendering. Use when asked to scrape, crawl, or extract data from websites; web_fetch fails; the site has anti-bot protections; write Python code to scrape/crawl; or write spiders.

nehakanjamala/personal_website

This skill should be used when the user asks to "animate an SVG", "make a line draw itself on", "do a stroke draw-on / signature animation", "morph one shape into another", "move an element along a path", "animate an icon/logo", or "animate an SVG gradient or filter". Covers stroke-dashoffset draw-on, path morphing, motion-along-path, and animated icons/gradients/filters via CSS, SMIL, and GSAP.

相关技能