본문으로 건너뛰기
Skillpedia
웹 스크레이핑29k · #9613

universal-scraping-architect

하는 일

이 스킬은 웹사이트, 문서, API에서 데이터를 가져오는 도구를 설계하도록 돕습니다. 데이터를 안정적으로 모으고 정확성을 점검해야 하는 사람에게 맞습니다.

사용하는 경우

  • ✓JavaScript로 콘텐츠를 불러오는 웹사이트에서 데이터를 모아야 할 때.
  • ✓PDF나 스프레드시트 같은 로컬 파일에서 표나 텍스트를 추출해야 할 때.
  • ✓추출된 데이터를 쓰기 전에 오류가 있는지 확인하고 싶을 때.

스킬 링크

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/universal-scraping-architect/skills/universal-scraping-architect/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/universal-scraping-architect/skills/universal-scraping-architect/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 상점에서 제품 이름과 가격을 모으고, 결과에 오류가 있는지 확인하는 스크레이퍼를 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 출처에 따라 방법을 고릅니다. 웹 추출 서비스를 쓰거나 로컬 Python 도구를 씁니다. 그다음 추출기를 만들고, 예상 규칙에 맞춰 출력을 검증합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Universal Scraping Architect

Design complete, robust data-extraction pipelines with intelligent routing, validation, and token-budget tracking — not brittle one-off scripts.

Dependency Notice: BYOK (Bring Your Own Key) pattern for Firecrawl; API keys must only be loaded via environment variables. Per-script dependencies:

Script Dependencies Exact CLI
scripts/validate_extraction.py stdlib only python3 scripts/validate_extraction.py output.json --json
scripts/firecrawl_example.py firecrawl, requests (template; --sample runs offline) python3 scripts/firecrawl_example.py --sample
scripts/local_bs4_example.py beautifulsoup4, pandas (template; --sample runs offline) python3 scripts/local_bs4_example.py --sample

Before Starting

Check for context first: If project-context.md exists, read it before asking questions. Determine the target data format, scale of extraction, and deployment environment before writing any code.

How This Skill Works

This skill supports 3 extraction modes based on intelligent routing:

Mode 1: API-Driven (Firecrawl)

Use when the source is a public URL, heavily dynamic (JS/SPA), requires search-first discovery, or involves bulk crawling across a domain.

Mode 2: Local Python (Traditional)

Use when extracting from local files (PDF, Excel, CSV), the data is private/sensitive, or the target is a simple static HTML page where Firecrawl is overkill.

Mode 3: Hybrid Pipeline

Use when Firecrawl handles URL discovery/web extraction, but local Python (Pandas) is required to clean, normalize, and structure the output before saving.

The Extraction Pipeline

When executing a scraping task, always follow this sequence:

  1. Route the Approach: Explicitly state whether Firecrawl or Local Python is being used and why.
  2. Track Budgets: Estimate Firecrawl API quotas or LLM token context limits before executing large jobs.
  3. Extract Safely: Implement checkpointing for multi-page jobs. Handle pagination and dynamic layouts gracefully. Start from the editable runner templates — scripts/firecrawl_example.py (Mode 1) or scripts/local_bs4_example.py (Mode 2); run each with --sample first to see the expected summary shape without network access.
  4. Validate & Clean: Run python3 scripts/validate_extraction.py extracted_output.json --json on every extraction result before delivering it. It exits 0 only on {"status": "ok"}; warning (empty output) or error (malformed JSON) exit 1 — fix and re-extract, never ship unvalidated data. Beyond this structural gate, also check required fields and duplicates against the pipeline spec before delivering.
  5. Format: Default to CSV for tabular data, JSON for nested structures, and Markdown for clean text.

Proactive Triggers

Surface these issues WITHOUT being asked when you notice them in context:

  • Hardcoded API Keys → Flag immediately and rewrite to use os.getenv('FIRECRAWL_API_KEY').
  • Private Data Leakage → If the user asks to send local, sensitive files to an external API, flag the privacy risk and suggest Mode 2 (Local Python).
  • Missing Pagination → If the target implies hundreds of records but no pagination logic is requested, flag it and add checkpointing.

Output Artifacts

When you ask for... You get...
"Scrape this site" A fully validated Python extraction script with routing logic and error handling.
"Get data from this table" A clean CSV/JSON dataset with a summary log of row counts and empty values.
"Crawl these docs" A Markdown deliverable chunked for LLM token limits.

Anti-Patterns

  • Brittle Selectors: Never use highly nested CSS selectors (e.g., div > span > ul > li:nth-child(3)). Use data attributes or robust structural anchors.
  • Ignoring Etiquette: Never scrape without checking robots.txt or implementing sensible rate limits.
  • No Validation: Never blindly write scraped data to a file without checking if the array is empty or missing critical keys.

Related Skills

  • data-cleaning: Use when the scraped data requires complex statistical normalization or deduplication.
  • browser-automation: Use for highly interactive scraping requiring user emulation (clicks, logins) where Firecrawl is insufficient.

More in this skill

Load these only when the task needs them.

  • [references/firecrawl-technical-guide.md](references/fire
자주 묻는 질문

어떤 도구를 쓰나요?

Firecrawl 서비스나 BeautifulSoup, pandas 같은 로컬 Python 도구를 쓸 수 있습니다.

API 키를 코드에 저장하나요?

아니요. 키는 환경 변수에서만 불러와야 한다고 스킬이 안내합니다.

결과를 검사하나요?

네. 추출된 출력을 확인하는 검증 스크립트가 포함되어 있습니다.

상세 정보

작성자의 원본 설명

Use for web scraping, crawling, document extraction or API parsing pipelines that must validate what they extract. Builds the extractor with Firecrawl or local Python and checks output with validate_extraction.py.

repo: alirezarezvani/claude-skills

인기도

GitHub 스타
29k
순위
#9613
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬