yrzhe/claude-skills/intelligent-web-scraper
Claude Code and agent skill by yrzhe/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Self-learning intelligent web scraper agent - automatically analyzes page structure, handles pagination, anti-blocking, and discovers article series. No user configuration needed - AI decides everything.
Install
npx vskill@latest install yrzhe/claude-skills/intelligent-web-scraperSKILL.md
Intelligent Web Scraper Agent
A self-aware, self-learning web scraping agent that accumulates experience over time.
Prerequisites
IMPORTANT: Before using this skill, ensure these dependencies are installed.
One-Click Setup (Recommended)
The setup script will:
- Detect your environment (macOS/Linux, GUI/headless)
- Install all Python dependencies
- Install Playwright browsers
- Set up Crawl4AI
- Create necessary directories
Check Dependencies
Manual Setup (Alternative)
If you prefer manual installation:
Required Tools
| Tool | Purpose | Installation | |
|---|---|---|---|
| Playwright MCP | Browser automation | Must be configured in Claude Code MCP settings | |
| Python 3.9+ | Script execution | brew install python or system package manager | |
| Crawl4AI | Advanced crawling | Included in setup.sh |
Verify Installation
VPS/Headless Deployment
For servers without GUI (VPS, Docker, CI):
Note: local_browser_scraper.py (CDP mode) requires a GUI and is not available in headless environments. Use crawl4ai_wrapper.py instead.
Local Browser Scraping (CDP)
Use this when the user wants to scrape using their local browser (Comet, Chrome, etc.)
This allows scraping while preserving user's login sessions and cookies!
Quick Start
Using local_browser_scraper.py
Launch browser with debugging:
Scrape from current tab:
Scrape specific tab (by URL pattern):
Built-in extractors: text, html, title, links, images, tables, articles, metadata
Manual CDP (Alternative)
CRITICAL: Always use user's EXISTING profile to preserve login sessions!
Browser Profile Locations (macOS)
| Browser | User Data Directory | |
|---|---|---|
| Comet | ~/Library/Application Support/Comet | |
| Chrome | ~/Library/Application Support/Google/Chrome | |
| Edge | ~/Library/Application Support/Microsoft Edge | |
| Brave | ~/Library/Application Support/BraveSoftware/Brave-Browser |
NEVER use temp directory like /tmp/browser-debug - this creates empty profile without logins!
Why use existing profile:
- Preserves all login sessions (no re-authentication needed)
- Browser extensions work normally
- User's bookmarks, history available
When to Use Local Browser vs Playwright
| Use Local Browser | Use Playwright | |
|---|---|---|
| User requests specific browser | Automated bulk scraping | |
| Need user's login session | Don't need authentication | |
| User wants to see the page | Headless scraping OK | |
| Site blocks headless browsers | Standard sites |
Core Capabilities
1. Intelligent Page Analysis
- Auto-detect page type (product list, article, series, etc.)
- Identify data containers and selectors
- Recognize pagination mechanisms
2. Smart Pagination & Scroll Loading
- Page numbers, Next button, Infinite scroll, Load more, API pagination
- Auto-detect and handle appropriately
CRITICAL: Scroll Loading Requirements
- MUST automatically scroll down the page until all content is loaded
- Many modern websites use lazy loading/infinite scroll, initially showing only partial content
- Scroll strategy:
- Record current page height
- Scroll to bottom
- Wait 1-2 seconds for new content to load
- Check if page height increased
- Repeat until height stops changing (3 consecutive times)
- Use
browser_evaluateto execute scrolling:
``javascript window.scrollTo(0, document.body.scrollHeight) ``
3. Detail Link Following
CRITICAL: Detail Page Scraping Requirements
- List pages may only show title/summary, full content is on detail pages
- MUST detect and follow detail links to get complete data
- Patterns to identify detail links:
- "View more", "Read more", "Details", "Full article"
- Title itself is a link
- Arrow links like "→"
- Scraping workflow:
- First scrape all entries from list page
- Identify detail link for each entry
- Visit detail pages one by one to extract full content
- Merge data and save
- Note: Detail page scraping needs appropriate delays (2-5s) to avoid blocking
4. Anti-Blocking
- Adaptive delays (2-60s based on signals)
- User-Agent rotation
- Block detection and recovery
5. Series Discovery
- Find prev/next links
- Detect table of contents
- URL pattern analysis
- Build complete series from single article
6. Self-Learning (NEW)
- Records successful patterns for each domain
- Accumulates lessons learned
- Reuses knowledge on similar sites
Self-Learning System
How It Works
Experience Database Structure
Location: ~/.claude/skills/intelligent-web-scraper/experiences/
Pattern Storage Format
Execution Guide
When You Receive a Scraping Request:
Phase 1: Check Existing Knowledge
- Read
site_patterns.json - Extract domain from target URL
- Check if matching pattern exists
- If yes: Report to user "I have experience with this site, using learned patterns"
Phase 2: Analyze Page
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/intelligent-web-scraper/skills/intelligent-web-scraper/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yrzhe/claude-skills/intelligent-web-scraper)