fix(scrapers): cian_detail — ceiling из offer.building.ceilingHeight, repair из decoration (#1791) #1800
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#1800
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/cian-detail-field-mapping"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #1791 (частично — см. NB про прокси).
Корень (проверено на 3 реальных карточках)
offer.building.ceilingHeight(3.0/2.68/2.7). Код читалoffer.ceilingHeight= всегда null → 0% покрытия. Фикс:building.ceilingHeight+ fallback.offer.decoration(preFine/euro);offer.repairTypeчасто пуст. Фикс:repairType or decoration+preFine→needs_repair(camelCase.lower()fallback в нормализаторе).offer.kitchenArea/offer.descriptionуже верные.ВАЖНО — kitchen/descr 3% это НЕ маппинг, а мёртвые прокси
kitchen/description на правильных путях. Их 3% покрытие = доля успешных detail-фетчей. Причина: CIAN_PROXY_URL (socks5) таймаутит, BROWSER_PROXY_CIAN → 503 — detail-энричмент почти не доходит до парса. Этот PR гарантирует, что КОГДА detail отрабатывает — ceiling/repair извлекаются. Полное покрытие kitchen/descr вернётся после починки прокси (отдельный issue).
Тесты
85 passed (cian_detail + normalizer), fixture-регресс: ceiling==3.0, kitchen==14.5, descr>50. (1 pre-existing fail в
test_cian_valuation— вне scope, файл не в diff.)На ревью
cian_flat_330982715.html(127KB, обрезана до offer-card блока).preFine→needs_repairмаппинг — корректна ли семантика (предчистовая = под ремонт).ceiling_height на detail-странице лежит в offer.building.ceilingHeight, а не offer.ceilingHeight (всегда null) → было 0% покрытия. repairType часто пустой, структурное значение приходит как offer.decoration ('preFine'/...) — читаем оба + добавлен preFine->needs_repair и case-insensitive lookup в нормализаторе. kitchen/description пути уже верны (offer.kitchenArea/offer.description) — низкое покрытие = мёртвый CIAN_PROXY_URL, не маппинг. Регресс-тест на реальной карточке 330982715.