Intelligent web scraping with automatic strategy selection and TypeScript-first Apify Actor development.
$ npx -y skills add yfe404/web-scraper --agent claude-code
FAQ
web-scraper is a Claude Code plugin with 1 hand-picked skill for data work, indexed on Flowy. Install it with the command on its page. It includes web-scraper. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Repo: yfe404/web-scraper
Intelligent web scraping with automatic strategy selection and TypeScript-first Apify Actor development.
This skill provides:
Add this skill to Claude Code by placing this directory in the skills folder.
User: "Scrape https://example.com"
Claude will automatically:
1. Phase 0: curl raw HTML โ detect framework, search for data points, check sitemaps
2. QUALITY GATE: All data in HTML? โ Skip browser, go to validation
3. Phase 1: Launch stealth browser (only if needed) โ capture traffic, rendered DOM
4. Phase 2: Deep scan (only for missing data) โ test interactions, sniff APIs
5. Phase 3: Validate every finding โ test selectors, replay APIs, confirm paths
6. Phase 4: Protection testing (only if signals detected or user requested)
7. Phase 5: Generate intelligence report with self-critique
8. Implement recommended approach iteratively
9. Test with small batch, then scale
User: "Make this an Apify Actor"
Claude will:
1. Recommend TypeScript (strongly)
2. Guide through `apify create` command
3. Help choose appropriate template (Cheerio vs Playwright)
4. Port scraping logic to Actor format
5. Configure input schema
6. Test and deploy
web-scraping/
โโโ SKILL.md # Main entry point (proactive workflow)
โโโ workflows/ # Implementation patterns
โ โโโ reconnaissance.md # Phase 1 interactive reconnaissance (CRITICAL)
โ โโโ implementation.md # Phase 4 iterative implementation
โ โโโ productionization.md # Phase 5 Actor creation
โโโ strategies/ # Deep-dive guides
โ โโโ framework-signatures.md # Framework detection lookup tables
โ โโโ cheerio-vs-browser-test.md # Cheerio vs Browser decision + early exit
โ โโโ proxy-escalation.md # Protection testing skip/run conditions
โ โโโ traffic-interception.md # MITM proxy traffic capture
โ โโโ sitemap-discovery.md # 60x faster URL discovery
โ โโโ api-discovery.md # 10-100x faster than scraping
โ โโโ dom-scraping.md # DevTools bridge + humanizer
โ โโโ cheerio-scraping.md # HTTP-only (5x faster)
โ โโโ hybrid-approaches.md # Combining strategies
โ โโโ anti-blocking.md # Multi-layer anti-detection
โ โโโ session-workflows.md # Session recording, HAR, replay
โโโ examples/ # Runnable code
โ โโโ traffic-interception-basic.js
โ โโโ sitemap-basic.js
โ โโโ api-scraper.js
โ โโโ hybrid-sitemap-api.js
โ โโโ iterative-fallback.js
โโโ reference/ # Quick lookup
โ โโโ report-schema.md # Intelligence report format (Sections 1-7)
โ โโโ proxy-tool-reference.md # Proxy-MCP tools (80+)
โ โโโ regex-patterns.md
โ โโโ fingerprint-patterns.md
โ โโโ anti-patterns.md
โโโ apify/ # Production deployment
โ โโโ typescript-first.md # Why TypeScript
โ โโโ cli-workflow.md # apify create (CRITICAL)
โ โโโ templates/ # TypeScript boilerplate
โ โโโ examples/ # Working actors
โโโ README.md # This file
This skill follows Anthropic's official best practices for skill development:
Pattern: Three-level loading system to manage context efficiently
Result: 70-80% token reduction vs monolithic documentation
Source: skill-creator/SKILL.md
Pattern: Write instructions using verb-first commands, not second-person language
Examples:
Exception: Second-person is acceptable in user-facing prompts, code comments, and tutorial examples
Source: skill-creator/SKILL.md
Pattern: Concise, specific name and description that determine when Claude invokes the skill
Applied:
name: web-scraping - Clear, hyphen-case identifierdescription: - Specific about activation triggers and capabilities (189 chars, optimized from 244)Source: agent_skills_spec.md
Pattern: Keep only essential procedural instructions in SKILL.md; move detailed information to subdirectories
Applied:
workflows/: Detailed implementation patternsstrategies/: Deep-dive guidesexamples/: Runnable codereference/: Quick lookup patternsapify/: Production deployment guidesSource: skill-creator/SKILL.md
Pattern: Separate executable code, documentation, and output resources
Applied:
examples/ - Executable JavaScript learning examples (like scripts/)workflows/, strategies/, reference/, apify/ - Documentation loaded as needed (like references/)apify/templates/, apify/examples/ - Boilerplate code and templates (like assets/)Source: skill-creator/SKILL.md
Pattern: Create focused skills for specific purposes rather than one skill that does everything
Applied: This skill focuses specifically on web scraping and Apify Actor development, not general web development
Source: Anthropic Skills Best Practices
Pattern: Use clear, technical language focused on "what" and "how" rather than persuasive or promotional tone
Applied: Direct technical guidance throughout ("Check for sitemaps", "Implement iteratively") vs. marketing language
Source: skill-creator/SKILL.md
Quality-gated workflow that skips unnecessary phases:
Uses strategies/framework-signatures.md lookup tables:
Reports follow reference/report-schema.md with:
Validated? column for every extraction strategy (YES / PARTIAL / NO)For production actors:
apify create command1. User: "Scrape example.com"
2. Phase 0: curl raw HTML โ detect Next.js (__NEXT_DATA__), find product data in JSON
3. GATE A: All data in __NEXT_DATA__? โ YES โ Skip browser
4. Phase 3: Validate JSON paths resolve to expected values
5. Phase 5: Generate report with self-critique
6. Result: No browser needed, Cheerio + JSON parsing sufficient
1. User: "Scrape protected-shop.com"
2. Phase 0: curl returns 403 โ protection detected, no data in HTML
3. GATE A: NO โ Continue to Phase 1
4. Phase 1: Stealth browser loads page, traffic reveals API endpoint
5. GATE B: All data covered via API โ Skip Phase 2
6. Phase 3: Replay API request, validate response structure
7. Phase 4: Protection testing (403 was detected) โ stealth browser + proxy needed
8. Phase 5: Report + self-critique
9. Implements with discovered API + upstream proxies
10. Tests with 10 items, scales to full dataset
1. User: "Make this an Apify Actor"
2. Claude loads apify/ module
3. Recommends TypeScript? (Yes)
4. Guides through: apify create
5. Analyzes site: Static HTML โ Selects Cheerio template
6. Ports scraping logic to TypeScript
7. Adds input schema
8. Tests: apify run
9. Deploys: apify push
10. Result: Production-ready actor
| Approach | Time (1000 pages) | vs Crawling |
|---|---|---|
| Sitemap + API | 5 minutes | 60x faster |
| Sitemap + Playwright | 20 minutes | 15x faster |
| API only | 8 minutes | 40x faster |
| Playwright crawl | 45 minutes | Baseline |
apify create commandapify runapify pushโ See strategies/sitemap-discovery.md troubleshooting section
โ See strategies/api-discovery.md authentication section
โ See strategies/dom-scraping.md and consider API discovered via traffic capture
โ See apify/cli-workflow.md common issues section
SKILL.md for complete workflowworkflows/strategies/ for detailed guidesexamples/ directoryreference/apify/Intelligence first, implementation second!
This skill prioritizes:
5.0.0 - Traffic-interception-first scraping:
All best practices sourced from official Anthropic documentation:
Start here: Read SKILL.md for the complete proactive workflow.
.gitignore
apify/
agents-md-guide.md
cli-workflow.md
configuration.md
deployment.md
examples/
anti-blocking/
.actor/
actor.json
input_schema.json
README.md
src/
main.ts
basic-scraper/
.actor/
actor.json
input_schema.json
README.md
src/
main.ts
hybrid-api/
.actor/
actor.json
input_schema.json
README.md
src/
main.ts
initialization.md
input-schemas.md
README.md
templates/
main.ts
typescript-actor/
.actor/
actor.json
input_schema.json
Dockerfile
package.json
src/
main.ts
types.ts
tsconfig.json
typescript-first.md
examples/
api-scraper.js
hybrid-sitemap-api.js
iterative-fallback.js
README.md
sitemap-basic.js
traffic-interception-basic.js
LICENSE
README.md
reference/
anti-patterns.md
fingerprint-patterns.md
proxy-tool-reference.md
README.md
regex-patterns.md
report-schema.md
SKILL.md
strategies/
anti-blocking.md
api-discovery.md
cheerio-scraping.md
cheerio-vs-browser-test.md
dom-scraping.md
framework-signatures.md
hybrid-approaches.md
proxy-escalation.md
README.md
session-workflows.md
sitemap-discovery.md
traffic-interception.md
workflows/
implementation.md
productionization.md
reconnaissance.mdยฉ 2026 Flowy ยท Free and open source
Built for Claude Code ยท Not affiliated with Anthropic