feat: 블로그 자동화 시스템 v2 — 웹 대시보드 + GitHub Pages + 팩트체크 - #1
Merged
Conversation
Kevinlee7250 pushed a commit
that referenced
this pull request
Jun 2, 2026
Keyword Analyzer: - Trend direction weighting (rising +60pts, risingRate>50% +30pts) - AdSense CPC estimation by category (금융 $2.5, 법률 $3.2, 부동산 $2.8 etc.) - analyzeNaverDatalabResults() for MCP-based external data ingestion Blog Content Generator: - FAQ section (5 Q&A) targeting Google Featured Snippets - Article + FAQPage JSON-LD structured data - 3-slot AdSense injection ([광고슬롯1], [광고슬롯2] markers) - injectAdSenseSlots() and buildFAQStructuredData() helpers - Increased max_tokens to 6000 for richer posts (2000+ chars) Thumbnail Generator (v2): - 6 color themes (added neon-green, gold-dark) - Trend rank badge (#1 HOT / 🚀 급상승) - Rising indicator arrow for trending keywords - News count badge + category label - Gradient accent line (two-color gradient) - Vertical thumbnail: 3-zone layout with CTA button Social Content Generator (v2): - Optimal posting time recommendations per platform - Instagram: save-rate optimization ("저장 필수 🔖"), story highlight title - Instagram: 3-tier hashtag strategy (popular/medium/niche) - Threads: engagement question per thread chain - TikTok: per-scene sound effects + full narration script - getNextOptimalPostingTime() utility Blogger Publisher (v2): - 3-slot AdSense placement (top/mid1/mid2/bottom) - FAQPage structured data injection - Article schema with dateModified - Collapsible FAQ <details> UI New: analytics.js - AdSense earnings estimation (CPC × CTR × PV) - Daily/monthly/yearly revenue projections - 90-day run history tracking - printEarningsReport() formatted output New: preview-report.js - Full HTML preview report (dark theme) - Per-post: title, meta, FAQ, SNS previews, earnings estimate - TikTok scene table, Instagram hashtag preview, Threads chain view Orchestrator (v2): - --preview mode: generate all content without publishing - --draft mode: Blogger draft save only, no SNS - publishWithRetry() with exponential backoff (3 attempts) - AdSense earnings report printed after each run - recordRunStats() for cumulative analytics https://claude.ai/code/session_0119g48zQT4kK7dKFk9on5Ev
Kevinlee7250had a problem deploying
to
github-pages
June 3, 2026 01:39 — with
GitHub Actions
Failure
_engagement_block()이 여행/스포츠/드라마·연예/금융 4개 카테고리에 동일한 체류 지침을 쓰던 것을 _detect_content_category()로 분기해 카테고리별 도입부 후킹 방식을 다르게 지시하도록 변경: - 금융: 숫자·근거로 시작 (신뢰 우선) - 스포츠: 결과·핵심부터 공개 (속보 읽기 패턴) - 드라마·연예: 장면·감정으로 시작 + 긴장-전개-해소 곡선 - 여행·일반: 공감 유발 상황 제시 블로그ID 우선, 없으면 키워드 토큰으로 카테고리 판별. 낚시 금지· 모바일 가독성 등 공통 규칙은 유지. 회귀 테스트 7건 추가.
어제 추가한 _detect_content_category() 결과(finance/sports/drama/travel)를 post_data에서 registry(post_manager)·run_history(dashboard_exporter)· posts.json까지 끊기지 않고 흘려보내도록 연결. pending 검토 저장 경로도 포함. blog_analytics.py에 contentCategoryBreakdown 집계 추가 — 카테고리별 등급 분포·예상 조회수를 analytics_summary.json에 기록해, 새 도입부 후킹 스타일이 실제로 효과가 있었는지 다음 분석 실행부터 비교 가능. 회귀 테스트 2건 추가 (등록·실행이력 경로 태그 전달 확인).
readability_checker.py: 생성된 본문에서 평균 문장 길이, 긴 문장 비율,
카테고리별 전문용어(금융/스포츠/드라마/여행)가 쉬운 설명 표현
("쉽게 말해" 등) 없이 쓰였는지를 스캔.
content_generator.py의 generate_post()/generate_series_post() 재시도
루프(기존 분량 미달 재시도와 동일한 패턴)에 연결 — 기준 미달 시 같은
요청 안에서 최대 2회 재작성을 요청하고, 재시도 소진 시 경고 로그만
남기고 그대로 진행(발행 차단은 안 함). 결과는 post_data["readability"]
에 기록되어 추후 등급·GSC 지표와 비교 가능.
회귀 테스트 7건 추가._inject_mid_article_faq(): 글 끝에 몰려있던 FAQ 카드 중 첫 번째를 복제해 본문 H2 섹션들의 중간 지점(이탈이 가장 잦은 구간)에도 배치. 끝의 전체 FAQ 목록은 SEO·스키마용으로 그대로 유지하고, 중간에는 "잠깐, 이것도 궁금하지 않으세요?" 문구와 함께 카드 1개만 추가. H2 섹션이 3개 미만이면(끼워 넣을 지점이 마땅치 않음) 건드리지 않음. _apply_design()의 FAQ 카드 스타일링 직후에 연결. 회귀 테스트 5건 추가.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
블로그 자동화 시스템 전체 기능 + 최신 업데이트 포함
최신 추가: 쿠팡파트너스 링크 자동 삽입
coupang_affiliate.py신규 모듈: 글 하단 고정 위치에 파트너스 링크 섹션 삽입기존 기능
claude_generate()이어쓰기 로직https://kevinlee7250.github.io/cli/)Test plan
https://claude.ai/code/session_0119g48zQT4kK7dKFk9on5Ev