Skip to content
Agentmart
Submit a tool

article-extractor

뉴스 URL 로부터 본문과 메타데이터를 높은 정확도로 추출한다.

Skill by Wendy-Nam

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/wendy-nam-article-extractor

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

뉴스 URL 로부터 본문과 메타데이터를 높은 정확도로 추출한다. Trafilatura 기본, 네이버 뉴스는 CSS 셀렉터 특화, 실패 시 Jina Reader API 폴백. 광고·메뉴·관련기사를 제거하고 깨끗한 텍스트만 반환. 2024년 벤치마크 기준 Trafilatura 는 F1 0.945 로 1위.

Use cases: frontend, backend, writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/article-extractor

What's inside

Skill name
article-extractor
Description
뉴스 URL 로부터 본문과 메타데이터를 높은 정확도로 추출한다. Trafilatura 기본, 네이버 뉴스는 CSS 셀렉터 특화, 실패 시 Jina Reader API 폴백. 광고·메뉴·관련기사를 제거하고 깨끗한 텍스트만 반환. 2024년 벤치마크 기준 Trafilatura 는 F1 0.945 로 1위.
License
MIT
Instructions
71 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • extract.py

SKILL.md (first lines)

# Article Extractor Skill

뉴스 URL → 깨끗한 본문 + 메타데이터 추출.

## 사용법

```bash
python3 ${CLAUDE_SKILL_DIR}/extract.py <URL> [--output /path/to/output.json]
```

## 왜 이 skill 이 중요한가

LLM 은 **광고/메뉴가 섞인 원본 HTML 을 주면 엉뚱한 걸 요약** 한다. 
본문만 깨끗하게 뽑아주는 것이 환각 저감의 가장 큰 지렛대다 (정확도 향상의 50%+ 기여).

## 추출 전략 (우선순위)

### 1. 네이버 뉴스 특화 (`n.news.naver.com`)
- CSS 셀렉터 `#dic_area` 로 본문
- `.media_end_head_title` 로 제목
- `.media_end_head_info_datestamp_time` 로 발행일
- 가장 정확, 가장 빠름

### 2. Trafilatura (범용)
- 대부분의 뉴스 사이트에 대해 F1 0.945 (Scrapinghub 2024 벤치마크)
- 한국어 포함 다국어 지원
- 메타데이터 동시 추출 (저자, 날짜)

### 3. Jina Reader API 폴백
- 위 둘이 실패하면 `https://r.jina.ai/<URL>` 호출
- 무료 티어로 사용 가능
- JS 렌더링 필요한 사이트도 처리

## 출력 스키마

```json
{
  "url": "...",
  "fetched_at": "2026-04-20T09:30:00+09:00",
  "title": "...",
  "author": null,
  "published_date": "2026-04-19",
  "source_name": "연합뉴스",
  "language": "ko",
  "full_text": "...",
  "paragraphs": [
    {"idx": 1, "text": "..."},
    {"idx": 2, "text": "..."}
  ],
  "word_count": 847,
  "extraction_method": "naver_selector | trafilatura | jina_reader"
}
```

## 실패 처리

- HTTP 4xx/5xx → `{"error": "http_error", "status": N}` 반환 + exit code 1
- 본문 < 500자 → `{"error": "too_short", "length": N}` (광고성/삭제된 기사 의심)
- 인코딩 실패 → `{"error": "encoding"}`
- Paywall 감지 → `{"error": "paywall"}`

## 설치 의존성

처음 1회만:
```bash
pip install trafilatura requests chardet --break-system-packages
```

Jina Reader 는 API 키 없이 무료 사용 (레이트리밋 있음).

From Wendy-Nam/wendy-pr-intelligence, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jun 14, 2026 (4 months ago)
Last release
Sep 16, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Wendy-Nam

Cite this page

article-extractor skill. Agent Mart. https://agentmart.dev/skills/wendy-nam-article-extractor (last updated 2026-10-24)