scrape-webpage

Scrape webpages, extract metadata, download images, and generate migration-ready outputs.

1|Updated Oct 3, 2025
One-click install
npx skills add https://github.com/initialyze/acme-services --skill scrape-webpage-initialyze
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: scrape-webpage
Source: https://github.com/initialyze/acme-services/tree/main/.claude/.skills/scrape-webpage
Command: npx skills add https://github.com/initialyze/acme-services --skill scrape-webpage-initialyze

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, sharp, and includes scripts (resource) components.

What problem does it solve?

This skill scrapes a webpage, extracts metadata, downloads images, and prepares a migration-ready analysis.

Core Features & Use Cases

  • Automated webpage analysis: extracts HTML, metadata (Open Graph, JSON-LD), and screenshots to facilitate migration.
  • Local image capture: downloads and localizes all images, converts formats to PNG when needed, and builds a mapping from original URLs to local paths.
  • Migration-ready output: generates metadata.json with document paths and image mappings for downstream import steps.

Quick Start

Run the analysis script to process a page, for example: node .claude/skills/scrape-webpage/scripts/analyze-webpage.js "https://example.com/page" --output ./import-work

Frequently Asked Questions about scrape-webpage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scrape a webpage and extract its metadata for a site migration?▼

To scrape a webpage for migration, this tool renders the target URL with Playwright, extracts Open Graph and JSON-LD metadata, downloads images, and outputs a metadata.json file alongside cleaned HTML. It automates the analysis required to prepare page content for import workflows.

How do I map and download images locally when migrating a webpage to AEM?▼

To map and download images for an AEM migration, the scrape-webpage script captures all images from the target page, converts formats to PNG using Sharp, and saves them locally. It generates a mapping from original URLs to local paths within the metadata.json output.

Can I use Playwright to generate screenshots and clean HTML during a content audit?▼

Yes, you can use Playwright to generate screenshots and clean HTML during a content audit. The script renders the webpage, captures a full screenshot, cleans the HTML for migrated content, and packages the results for downstream migration-ready analysis.

Do I need Node.js and Playwright installed to scrape webpages and extract Open Graph data?▼

Yes, you need Node.js and Playwright installed to scrape webpages and extract Open Graph data. The script runs via Node.js and requires Playwright for rendering JavaScript-heavy pages, plus Sharp for processing and converting downloaded images to PNG.

What is the best way to prepare a migration-ready analysis from a single webpage URL?▼

The best way to prepare a migration-ready analysis is running an automated script that extracts HTML, metadata, and screenshots, then localizes images. This generates a structured metadata.json file with document paths and image mappings for seamless downstream import.

What limitations exist when scraping JavaScript-heavy webpages for JSON-LD metadata?▼

When scraping JavaScript-heavy webpages for JSON-LD metadata, limitations depend on Playwright's rendering capabilities and the target site's bot protection. While it executes JavaScript to render dynamic content, strict anti-scraping measures or complex authentication barriers may prevent successful extraction.