scrape-webpage

Scrape webpages to extract content, metadata, and images for migration workflows.

Updated Sep 12, 2025
One-click install
npx skills add https://github.com/ComwrapUkReply/ue-multitenant-root --skill scrape-webpage-comwrapukreply
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scrape-webpage
Source: https://github.com/ComwrapUkReply/ue-multitenant-root/tree/main/.claude/skills/scrape-webpage
Command: npx skills add https://github.com/ComwrapUkReply/ue-multitenant-root --skill scrape-webpage-comwrapukreply

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill automates extracting web page content, metadata, and images to support migration workflows and offline analysis, reducing manual scraping effort.

Core Features & Use Cases

  • Page analysis: Retrieve essential metadata (title, description, Open Graph, JSON-LD, canonical) and capture a full-page screenshot.
  • Image harvesting & mapping: Download page images locally and generate a mapping from original URLs to local paths for offline migration.
  • Migration-ready output: Produce a cleaned HTML with local image references and a metadata.json payload for consumption by downstream skills such as page-structure analysis and HTML generation.

Quick Start

Run the analyze-webpage script against a target URL to generate artifacts (metadata.json, cleaned HTML, screenshot, and images) ready for migration steps.

Frequently Asked Questions about scrape-webpage

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

FAQPage Schema
How do I scrape webpage metadata and images for migration?

To scrape webpage content for migration, run the analyze-webpage script against a target URL. It renders the page to capture metadata, downloads local images, and outputs a metadata.json file alongside cleaned HTML for downstream processing.

Does webpage scraping require Playwright to render JavaScript?

Yes, Playwright is required for webpage scraping to properly render JavaScript and capture the full page. It enables the extraction of dynamic content, metadata, and full-page screenshots before generating the cleaned HTML and image map.

Can I download webpage images locally and map them to original URLs?

Yes, this skill downloads webpage images locally and generates a mapping from original URLs to local paths. This image harvesting creates an offline image map and updates cleaned HTML references to ensure migration readiness.

What is the best way to extract Open Graph and JSON-LD metadata from a webpage?

Extracting Open Graph and JSON-LD metadata is best handled by an automated scraping script that renders the target page. It retrieves essential page metadata and outputs a structured metadata.json payload for downstream consumption.

How does sharp handle image format conversion during webpage scraping?

During webpage scraping, sharp processes downloaded images to handle format conversion locally. It ensures harvested images are properly formatted and mapped before being referenced in the cleaned HTML output for migration workflows.

What limitations exist when scraping cleaned HTML for downstream processing?

Limitations when scraping cleaned HTML include dependency on Playwright for rendering dynamic content and sharp for image processing. The output is structured for migration readiness, but complex JavaScript interactions may not fully execute during the static capture.