본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

web-scraper

guifav 제작

Web & Frontend Development
1.7kclawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Web scraping and content comprehension agent — multi-strategy extraction with cascade fallback, news detection.

설명

이 스킬이 하는 일

A 5-stage web scraping pipeline that detects news articles, extracts content using a cascade of strategies (static HTTP, Playwright, Scrapy), removes boilerplate, and pulls structured metadata. Handles JS-rendered pages, soft paywalls, bulk crawls, and encoding normalization. Optionally extracts named entities via LLM using clean text only, never raw HTML.

The cascade fallback (static HTTP first, Playwright only when needed) avoids headless browser overhead for simple pages while still handling JS-rendered SPAs that single-strategy scrapers fail on.

사용 시점

  • Extracting full article text and metadata from a news site
  • Bulk crawling all articles on a domain into structured JSON
  • Scraping content from a React or Next.js SPA that requires JS rendering
  • Extracting people, organizations, and events mentioned in news articles
  • Checking which parts of a paywalled article are publicly accessible

예시 워크플로

입력

User asks: Scrape this news article URL and extract all named entities

에이전트
  1. 1

    Analyzes URL pattern and page HTML to confirm it is a news article (Stage 1)

  2. 2

    Fetches page with static HTTP; detects JS rendering need and escalates to Playwright (Stage 2)

  3. 3

    Removes boilerplate with trafilatura and normalizes encoding (Stage 3)

  4. 4

    Extracts structured metadata: title, author, publication date, paywall status (Stage 4)

  5. 5

    Sends clean text to LLM via OpenRouter and parses entity JSON response (Stage 5)

출력

JSON file with article text, metadata fields, and structured entities grouped by people, organizations, locations, and events

요구 사항

  • OPENROUTER_API_KEY environment variable (for LLM entity extraction in Stage 5)
  • Playwright Chromium browser installed via 'playwright install chromium'

설치

clawhub install guifav/web-scraper

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크