Imported from cdeistopened/skill-stack (
public/skills/web-scrape/SKILL.md). Install upstream withnpx skills add cdeistopened/skill-stack --skill web-scrape. Copyright stays with the author.
Web Scrape
Fetches web pages, converts HTML to clean markdown, with optional AI summarization.
When to Use
- User wants to save a web article as markdown
- Batch scraping a list of URLs
- Building a research corpus from web sources
Commands
# Scrape a single URL
bun run web-scrape/scripts/scrape.ts --url "https://example.com/article"
# Scrape with AI summary
bun run web-scrape/scripts/scrape.ts --url "https://example.com/article" --summarize
# Batch scrape from file (one URL per line)
bun run web-scrape/scripts/scrape.ts --file urls.txt
# Batch scrape with summaries
bun run web-scrape/scripts/scrape.ts --file urls.txt --summarize
Requirements
GEMINI_API_KEYenvironment variable (only for --summarize)- Output goes to
output/scraped/by default
Output
Markdown file with YAML frontmatter (title, author, source, word count) and clean article content. The --summarize flag prepends bullet-point summary + topic tags.
Features
- Extracts
<article>or<main>content when available - Strips nav, footer, scripts, ads
- Preserves headings, links, code blocks, lists
- Extracts metadata from Open Graph and meta tags