feat(scraper-kit): copy avito providers with protocol injection, strangler (#2133 avito) #2155
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#2155
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/scraper-kit-provider-avito"
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 — avito). Strangler-copy — старые
app/services/scrapers/avito*.pyНЕ тронуты, боевой avito на них, деплой инертен. Консолидация дублей = шаг E.Скопировано в
scraper_kit/providers/avito/serp.py← avito.py (SERP ядро),detail.py,houses.py,imv.py,shared.py(RUS_MONTHS/_unix_to_date)scraper_kit/geo.py— чистые bbox-хелперы (из geocoder)Развязка от app.* (grep пусто, тест-guard)
settings→ инжектScraperConfigProtocol (AvitoScraper(config, *, delay_provider=None))get_scraper_delay→ инжектdelay_provideris_within_ekb_bbox_wide→scraper_kit.geomatch_or_create_house→ инжектHouseMatcherвsave_house_catalog_enrichment(..., matcher)scraper_kit.*Deps
curl-cffi>=0.7.0добавлен в scraper-kit pyproject (единственный новый; уже был в lock → 0 конфликтов). Для cian/yandex/domclick после — deps устаканены.Golden-parity ✅ (9 тестов)
Старый парсер ≡ новый на общих фикстурах: SERP
_parse_html(model_dump()идентичен, ekb_only=False/True),_extract_total_count, sortTimeStamp/_unix_to_date, detailparse_detail_html(asdictидентичен) + no-app-imports guard.Verify
app/services/scrapers/avito*не тронуты (git status пусто)