fix: 목차 완전 제거, Wikipedia 이미지 fallback 추가

1. publisher_bot.py + blog_converter.py: 목차(TOC) 완전 비활성화
2. fetch_featured_image(): Wikipedia REST API로 무료 이미지 fallback
   - 제목/태그로 한국어 Wikipedia 검색 → 썸네일 추출
   - 실패 시 영문 Wikipedia 시도 (최대 4개 키워드)
   - 200px 썸네일 → 800px 고해상도로 교체

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
JOUNGWOOK KWON
2026-03-30 17:54:07 +09:00
parent f3526bbcdd
commit b98d694b65
2 changed files with 38 additions and 6 deletions
+1 -2
View File
@@ -96,8 +96,7 @@ def build_full_html(article: dict, body_html: str, toc_html: str,
json_ld = build_json_ld(article, post_url)
disclaimer = article.get('disclaimer', '')
parts = [json_ld]
if toc_html:
parts.append(f'<div class="toc-wrapper">{toc_html}</div>')
# 목차 비활성화 — 독자 경험 개선
parts.append(body_html)
if disclaimer:
parts.append(f'<hr/><p class="disclaimer"><small>{disclaimer}</small></p>')