/ Diretório / Playground / web-scraper
● Comunidade yfe404 ⚡ Instantâneo

web-scraper

por yfe404 · yfe404/web-scraper

Phased reconnaissance scraper that prefers APIs > sitemaps > HTML, picks the right Apify template (Cheerio vs Playwright), and only escalates anti-detection when signals warrant.

Intelligent web scraping via Claude Code. Runs a 5-phase reconnaissance (Phases 0–5) that tries the cheapest extraction path first: public APIs, sitemap feeds, structured data. Only when those fail does it consider browser automation, and only when protection signals appear does it layer on stealth. Built around TypeScript-first Apify Actor development, with templates (Cheerio for static, Playwright for JS-heavy).

Por que usar

Principais recursos

Demo ao vivo

Como fica na prática

web-scraper-skill.replay ▶ pronto
0/0

Instalação

Repositório do autor · Documentação oficial de Skills do Claude

Casos de uso

Usos do mundo real: web-scraper

Scrape a static listing site into a structured dataset

👤 Data engineers pulling public data (directories, price lists, public records) ⏱ ~45 min intermediate

Quando usar: You need a dataset from a public site that doesn't have an API.

Fluxo
  1. Let the skill do recon
    Use web-scraper. Target: https://example.com/listings. I want name + URL + category. Recon first — tell me the cheapest extraction path.✓ Copiado
    → Skill reports: 'sitemap.xml available, use Cheerio'
  2. Scaffold the Apify Actor
    Scaffold a TypeScript Apify Cheerio actor for that extraction.✓ Copiado
    → Actor tree + main.ts ready to run
  3. Run and iterate
    Run locally on 10 pages; tighten selectors if needed.✓ Copiado
    → Clean JSON output

Resultado: An Apify Actor you can deploy for scheduled scrapes.

Armadilhas
  • Jumping to Playwright when Cheerio would do — Trust the recon — headful browsers 10x the cost unnecessarily
Combine com: apify · filesystem

Discover and use a site's undocumented JSON API instead of HTML

👤 Scraper devs who want reliability ⏱ ~30 min intermediate

Quando usar: The page is a SPA and HTML is gross, but the XHR calls are clean JSON.

Fluxo
  1. Run API-discovery phase
    Use web-scraper phase 1 — API discovery on https://example.com/app. Enumerate XHR/fetch endpoints.✓ Copiado
    → List of endpoints with observed payloads
  2. Build the JSON-based actor
    Generate an actor that hits those endpoints directly with auth as needed.✓ Copiado
    → Lightweight fetch-based actor

Resultado: A far more stable scrape than HTML parsing.

Armadilhas
  • Private/session-auth APIs that break when token rotates — Plan token-refresh logic or fall back to browser flow

Combinações

Combine com outros MCPs para 10× de alavancagem

web-scraper-skill + apify

Deploy the scaffolded actor to Apify for scheduled runs

Deploy this actor to my Apify account and schedule it daily.✓ Copiado
web-scraper-skill + filesystem

Keep the actor code in-repo alongside the consuming app

Scaffold into scrapers/ and commit with the main project.✓ Copiado

Ferramentas

O que este MCP expõe

FerramentaEntradasQuando chamarCusto
recon url Always first 0
scaffold_actor template (cheerio|playwright), target After recon picks template 0
record_session url Debugging dynamic sites 0
run_local actor path, limit Iteration phase 0

Custo e limites

O que custa rodar

Cota de API
Apify has its own compute + proxy quotas
Tokens por chamada
Moderate — scaffold and iteration loops
Monetário
Free skill; Apify costs separate
Dica
Prefer Cheerio — one of the cheapest run profiles on Apify

Segurança

Permissões, segredos, alcance

Escopos mínimos: Apify API token with actor:read + actor:write
Armazenamento de credenciais: APIFY_TOKEN in env
Saída de dados: Whatever sites you target + Apify platform

Solução de problemas

Erros comuns e correções

Cheerio returns empty selectors

Content is JS-rendered — rerun recon, expect Playwright template

Playwright times out

Bump navigation timeout; consider waiting for specific selector instead of networkidle

403 / bot-block page

Stop and reconsider. This is the legit signal to re-check ToS, not a cue to escalate stealth.

Alternativas

web-scraper vs. outros

AlternativaQuando usarTroca
Direct Apify consoleYou already know which template you needNo recon phase
firecrawlYou just need markdown of a page, not structured extractionNo actor scaffolding

Mais

Recursos

📖 Leia o README oficial no GitHub

🐙 Ver issues abertas

🔍 Ver todos os 400+ servidores MCP e Skills