website_audit 추출 정확도 개선 + Apify 빈값 방어

- website_parser: anchor-only href 추출로 CDN 노이즈 차단, additional_domains 를
  data-lang/서브도메인 prefix 기반 글로벌 사이트 검출로 교체, main_cta 카테고리화
  (전화/카톡/예약, fallback 제거) + 최대 3개 제한
- firecrawl: html → rawHtml 로 변경 (script 태그 보존 → 픽셀 검출 정상화)
- gemini_vision: logo_colors_hex 최대 5개 → 2개
- branding: 기존 brandAssets 보존하면서 logo_* 머지 (collect_brand_basics 결과
  덮어쓰지 않게)
- facebook_audit: _page_patch 가 누락 필드 default 값으로 초기화 (Apify 가 페이지
  데이터 못 받을 때 schema validation 실패 방어)
- schemas: top_videos / bio / linked_domain 옵셔널 처리 (실제 누락 가능 케이스 대응)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Opus 4.7 committed 2026-06-04 22:43:40 +09:00
1 parent 4ad30d4d36
commit c4cbbaf7e7
9 files changed
+134 -63

No files matched your search

+4 -4
View File
@@ -130,7 +130,7 @@ class YouTubeAudit(CamelModel):
channel_description: str
linked_urls: list[LinkedUrl]
playlists: list[str]
top_videos: list[TopVideo]
top_videos: list[TopVideo] = []
diagnosis: list[DiagnosisItem]
@@ -176,11 +176,11 @@ class FacebookPage(CamelModel):
followers: int
following: int
category: str
bio: str
bio: str = ""
logo: str
logo_description: str
link: str
linked_domain: str
linked_domain: str = ""
reviews: int
recent_post_age: str
has_whatsapp: bool | None = None
@@ -222,7 +222,7 @@ class AdditionalDomain(CamelModel):
class WebsiteAudit(CamelModel):
primary_domain: str
additional_domains: list[AdditionalDomain]
additional_domains: list[AdditionalDomain] = []
sns_links_on_site: bool
sns_links_detail: list[SnsLink] | None = None
tracking_pixels: list[TrackingPixel]