feat: Sprint 1 — 7 data quality quick wins
WP-1: YouTube channel ID regex {20,} → {22} (exactly 24 chars)
WP-2: Naver Place category filtering in enrich-channels (성형/피부)
WP-3: Google Maps stores mapsUrl separately from clinicWebsite
WP-4: Naver Blog separates officialBlogUrl from search results
WP-5: 강남언니 rawRating + normalized rating (≤5 → ×2), Firecrawl
prompt explicitly states "out of 10, NOT out of 5"
WP-6: Perplexity model centralized in _shared/config.ts (env override)
WP-7: Apify Instagram timeout 30s → 45s
Frontend: transformReport uses mapsUrl and officialBlogUrl when available
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
1071328574
commit
80c57147e7
8 files changed
+80
-39
No files matched your search
@@ -994,8 +994,10 @@ export function mergeEnrichment(
|
||||
name: '구글 지도',
|
||||
status: 'active' as const,
|
||||
details: `평점: ${gm.rating ?? '-'} / 리뷰: ${gm.reviewCount ?? '-'}`,
|
||||
// Always use Google Maps search URL — gm.website is the clinic's own site, not Maps
|
||||
url: gm.name ? `https://www.google.com/maps/search/${encodeURIComponent(String(gm.name))}` : '',
|
||||
// Use Maps URL from enrichment if available, fallback to search URL
|
||||
url: (gm as Record<string, unknown>).mapsUrl
|
||||
? String((gm as Record<string, unknown>).mapsUrl)
|
||||
: gm.name ? `https://www.google.com/maps/search/${encodeURIComponent(String(gm.name))}` : '',
|
||||
};
|
||||
if (gmChannelIdx >= 0) {
|
||||
merged.otherChannels[gmChannelIdx] = gmChannel;
|
||||
@@ -1090,8 +1092,10 @@ export function mergeEnrichment(
|
||||
name: '네이버 블로그',
|
||||
status: 'active' as const,
|
||||
details: `검색 결과: ${nb.totalResults?.toLocaleString() ?? '-'}건 / 최근 포스트 ${nb.posts?.length ?? 0}개`,
|
||||
// Always link to Naver blog search — individual post links may be unrelated personal blogs
|
||||
url: nb.searchQuery ? `https://search.naver.com/search.naver?where=blog&query=${encodeURIComponent(String(nb.searchQuery))}` : '',
|
||||
// Prefer official blog URL from Phase 1, fallback to search URL
|
||||
url: (nb as Record<string, unknown>).officialBlogUrl
|
||||
? String((nb as Record<string, unknown>).officialBlogUrl)
|
||||
: nb.searchQuery ? `https://search.naver.com/search.naver?where=blog&query=${encodeURIComponent(String(nb.searchQuery))}` : '',
|
||||
};
|
||||
if (nbChannelIdx >= 0) {
|
||||
merged.otherChannels[nbChannelIdx] = nbChannel;
|
||||
|
||||
Reference in new issue
Block a user