fix(crawler): enable crawlDetails on all active Cafe24 sites + color fallback chain#18
Open
KJaeKwan wants to merge 1 commit into
Open
fix(crawler): enable crawlDetails on all active Cafe24 sites + color fallback chain#18KJaeKwan wants to merge 1 commit into
KJaeKwan wants to merge 1 commit into
Conversation
…extraction fallback chain Products were failing to import because most Cafe24 sites never had crawlDetails enabled, so color (a NOT NULL DB field) was only ever guessed from the listing-page product name — which rarely contains a color word for Korean fashion titles. - platforms.ts: add crawlDetails: true to the remaining 5 active Cafe24 sites that lacked it (etcseoul, mardimercredi, matteveil, triplestore, roughside), plus onboarding config for yuse/ojos/goyowear and selector/pagination robustness fixes (skeleton li filtering, img-alt name fallback, duplicate-page loop guard) - cafe24-engine.ts: multi-tier color fallback — detail selector value, then name-based keyword match, then _COLOR suffix / [COLOR] bracket patterns; brand resolution now prefers config.brand over DOM guesses for single-brand storefronts - selector-registry.ts / base-detail-parser.ts / strategies.ts: per-site color selector overrides (blankroom JS-rendered span, ojos/goyowear name-based color) and sienneboutique og:title parenthetical color parser for sites where option1 is always size, not color - color-normalizer.ts: add Indigo, extend Sand synonym (oat) - probe-list.ts: new listing-page selector diagnostic tool for site onboarding 🗿 MoAI <email@mo.ai.kr>
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 free
to 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
crawlDetails: true적용_COLOR접미사/[COLOR]브라켓 패턴, 사이트별로 og:title 괄호 파싱 등 추가 폴백Test plan
npx tsc --noEmit통과 확인npx dotenv -e .env -- tsx src/crawl.ts --site=etcseoul,mardimercredi,matteveil,triplestore,roughside --detail소량 실행 후 color 필드 채워지는지 확인🗿 MoAI email@mo.ai.kr