feat(scraper-kit): copy cian providers with protocol injection, strangler (#2133 cian) #2157
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#2157
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/scraper-kit-provider-cian"
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?
Часть #2133 (Epic #2126, шаг D — cian). Strangler-copy —
app/services/scrapers/cian*+app/services/cian_session.pyНЕ тронуты, деплой инертен.Скопировано в
scraper_kit/providers/cian/serp.py← cian.py (CianScraper),detail.py,newbuilding.py,valuation.py,session.py← cian_session.pyhouse_type_normalizer.py(pure, нужен serp'у, в kit не было)contracts.py: полеcookie_encryption_key: strвScraperConfig(для session;Settingsструктурно удовлетворяет)Развязка
settings→ инжектScraperConfig(+delay_provider);glitchtip_dsn/cian_proxy_url/cookie_encryption_keyиз configsentry_sdk→ lazy import (не новый dep) — pyproject/lock НЕ тронутыscraper_kit.*(base/browser_fetcher/cian_state_parser/price_brackets/repair_state_normalizer/snapshot_writer/house_type_normalizer)Golden-parity ✅ (9 тестов)
SERP
_parse_serp_html+_offer_to_lot(вторичка/новостройка/студия,model_dumpидентичен),_format_address,extract_state(app≡kit), detailfetch_detail(asdict), valuation_parse_valuation_state, newbuilding экстракторы, strangler-guard.Verify
cian*/cian_sessionне тронуты; старые cian-тесты 172 passedfrom appв providers/cian/ пусто; ruff clean