What This Skill Enables
Claude can crawl websites, extract content from web pages, clean HTML to readable text, respect robots.txt, and generate structured summaries or documentation from web content. Perfect for research, competitive analysis, and content aggregation.
Compatibility
Native
- Claude Code / Claude: native skill usage via
SKILL.md.
- Codex/OpenAI workflows: compatible with Agent Skills-style
SKILL.md content as reusable workflow instructions.
Manual Adaptation
- Gemini CLI: native skill usage via
.gemini/skills/<skill-name>/SKILL.md or .agents/skills/<skill-name>/SKILL.md where supported.
- Cursor: use the generated
.cursor/rules/*.mdc adapter for project rules.
- OpenClaw and similar agents: use the same skill content as a reusable prompt/workflow file when native skill import is unavailable.
Prerequisites
Required:
- Claude Pro subscription
- Code Interpreter feature enabled
- URLs to crawl (or sitemap)
What Claude handles:
- Installing scraping libraries (BeautifulSoup, Playwright, Scrapy)
- Fetching web pages
- Parsing HTML
- Extracting readable content
- Respecting robots.txt
- Rate limiting requests
- Content deduplication
How to Use This Skill
Single Page Extraction
Prompt: "Extract the main content from this webpage: https://example.com/article
Convert to clean Markdown and save as article.md"
Claude will:
- Fetch the webpage
- Parse HTML
- Extract main content (remove ads, nav, footer)
- Convert to Markdown
- Save clean output
Multi-Page Crawl
Prompt: "Crawl all pages linked from this site:
Start URL: https://docs.example.com
Only crawl pages under /docs/
Extract content from each page
Save as individual Markdown files
Max 50 pages"
Claude will:
- Fetch start URL
- Find all links
- Filter to matching paths
- Crawl each page (with rate limiting)
- Extract and save content
- Generate index of pages
Content Summarization
Prompt: "Crawl these 10 blog posts and:
- Extract main content from each
- Generate 2-sentence summary per post
- Identify key topics
- Create master summary document
Format as JSON with metadata."
Claude will:
- Fetch all URLs
- Extract content
- Generate summaries
- Extract topics/tags
- Structure as JSON
Sitemap-Based Crawl
Prompt: "Download sitemap from https://example.com/sitemap.xml and:
- Extract all article URLs
- Crawl each article
- Extract: title, date, author, content
- Save as CSV with metadata"
Claude will:
- Fetch sitemap XML
- Parse URL list
- Crawl each URL (respecting rate limits)
- Extract structured data
- Export as CSV
Common Workflows
Competitor Analysis
"Analyze competitor website:
1. Crawl main site (max 20 pages)
2. Extract: services, pricing mentions, features
3. Identify key messaging themes
4. Create structured comparison report
Focus on product/service pages."
Documentation Mirror
"Create local mirror of documentation:
1. Start at https://docs.example.com
2. Crawl all /docs/* pages
3. Download images referenced
4. Convert to Markdown
5. Preserve link structure
6. Generate offline-browseable site"
Research Aggregation
"Gather research from these 20 URLs:
1. Extract main content from each
2. Identify key findings and quotes
3. Extract citations and references
4. Group by topic/theme
5. Create annotated bibliography
Output as structured Markdown."
Change Detection
"Monitor this webpage for changes:
1. Fetch current version
2. Extract main content
3. Compare with version from last week
4. Highlight what changed
5. Generate change report"
Web Scraping Best Practices
Respect & Ethics
- Always check robots.txt: Claude will respect crawl rules
- Rate limiting: Default to 1-2 requests/second
- User agent: Identify bot politely
- Terms of service: Respect website ToS
- Copyright: Content remains property of original creator
Technical Considerations
- Dynamic content: Use Playwright for JavaScript-heavy sites
- Authentication: Provide cookies/tokens if needed
- Pagination: Handle "Load More" and infinite scroll
- Anti-bot measures: Respect CAPTCHAs (don't try to bypass)
Content Extraction Methods
HTML Parsing
- BeautifulSoup for static HTML
- CSS selectors for targeting elements
- XPath for complex queries
Readability Algorithms
- Remove boilerplate (nav, ads, footers)
- Extract main article content
- Preserve formatting (headings, lists, links)
Structured Data
- JSON-LD extraction
- Schema.org metadata
- Open Graph tags
- Twitter Cards
Tips for Best Results
- Start Small: Test with 1-2 pages before bulk crawling
- Specify Scope: Define which pages to crawl ("only /blog/* paths")
- Rate Limits: Mention if you need slower crawling ("1 page per 5 seconds")
- Content Type: Describe what to extract ("article text only, no comments")
- Error Handling: "Skip pages that error and continue" vs "stop on first error"
- Deduplication: "Skip duplicate content" if crawling related pages
- Storage: Specify output format (Markdown, JSON, CSV, HTML)
Advanced Features
JavaScript Rendering
- Use Playwright for SPAs
- Wait for dynamic content to load
- Handle infinite scroll
- Click "Load More" buttons
Link Discovery
- Find all links on page
- Filter by pattern (regex)
- Depth-limited crawling
- Breadth-first vs depth-first
Data Extraction
- Tables to CSV
- Lists to arrays
- Forms and inputs
- Metadata extraction
Content Processing
- HTML to Markdown conversion
- Text cleaning and normalization
- Language detection
- Content summarization
Troubleshooting
Issue: Getting blocked or rate limited
Solution: "Slow down to 1 request per 10 seconds" and "Add random delays between requests"
Issue: Content not extracting correctly
Solution: "Show me the raw HTML first" then identify CSS selectors for main content
Issue: JavaScript content not loading
Solution: "Use Playwright to render JavaScript" or "Wait 5 seconds for content to load"
Issue: Too many pages being crawled
Solution: Set limits: "Max 50 pages" or "Only crawl 2 levels deep" or "Stick to /docs/* path"
Issue: Images/assets not downloading
Solution: "Download all images referenced in articles" or provide specific asset types needed
Issue: Different page structures
Solution: Provide multiple CSS selectors: "Try article.content, then div.post-body, then main"
Legal & Ethical Considerations
Important: Always respect:
- Copyright and intellectual property
- Website terms of service
- robots.txt directives
- Rate limits and server resources
- Privacy and personal data
- Commercial use restrictions
Use cases: Research, archival, accessibility, personal use
Prohibited: Spam, unauthorized scraping, data theft, ToS violations
Learn More
Features
- Robots-aware crawling with automatic robots.txt parsing and compliance checking
- Boilerplate removal using readability algorithms (Mozilla Readability, newspaper3k) to extract main content
- Language detection and content normalization for multi-language websites
- JSON/MD/CSV export with structured metadata and customizable output formats
- Dynamic content rendering with Playwright/Puppeteer for JavaScript-heavy SPAs
- Content deduplication and change detection for monitoring and archival workflows
- Sitemap-based crawling with URL pattern filtering and lastmod date filtering
- Rate limiting and polite crawling with configurable delays and concurrency limits
Use Cases
- Competitive intel packs with structured analysis of competitor websites and services
- Documentation mirrors for offline access and local documentation sites
- Research briefs with aggregated content from multiple sources and citation extraction
- Content monitoring and change detection for tracking website updates over time
- Data aggregation from multiple sources with structured export for analysis
- SEO analysis and content auditing with sitemap crawling and content extraction