feat(tradein): avito citywide + byrooms sweep mode (T6) #848
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#848
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/tradein-avito-citywide"
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?
Из inbox-ноты 2026-05-30-2050 (local→server). Эталон — рабочий локальный
scripts/local-sweep-ekb.py(CityWide/CityRooms сабклассы).ROOM_SLUGS(7 категорий, Avito ASgB-кодировки)._build_citywide_url(без geoCoords, sort-by-date)._build_rooms_url(room-slug в пути).fetch_city_wide(pages)+fetch_by_rooms(pages)— пагинация, break-on-empty, dedup по source_id, переиспользуют_fetch_serp_html(firewall-detect + IP-rotation сохранены)._build_web_url/fetch_aroundНЕ тронуты (backward-compat).pytest: 136 avito-тестов (16 новых). ruff clean.
⚠️ методы не вызываются из tasks — Celery-интеграция за рамками T6. datacenter-IP блокирует так же — предназначены для residential IP (как локальный скрипт).
✅ APPROVE — avito citywide/byrooms sweep (T6), additive + dormant, backward-compat.
Проверено:
_build_citywide_url/_build_rooms_url(без geoCoords/radius, s=104) +ROOM_SLUGS(7 (name,slug) кортежей).fetch_city_wide/fetch_by_roomsпереиспользуют_fetch_serp_html→ весь anti-block pipeline сохранён (firewall-detect #623/#830, IP-rotation, retries). Re-raiseAvitoBlockedError/AvitoRateLimitedError(бан не глотается → run banned корректно); прочий Exception → logger.exception + break;html is None(non-200)→break; break-on-empty; dedup по source_id (глобальный cross-category в byrooms).fetch_around/_build_web_urlНЕ тронуты → geo-режим не сломан (тестtest_build_web_url_still_has_geocoords). Новые методы dormant (не вызываются из tasks — Celery-интеграция вне T6) → нулевой runtime-impact до wiring.Anti-regression: avito.py only (нет конфликта с #847 config.py/yandex).
_parse_htmlпереиспользован без правок. self-extending файлов нет, секретов нет (slugs — URL-кодировки).Минор (не блок):
delay_override_secмутирует instancerequest_delay_sec(persists) — при one-sweep-per-instance не проблема.Мержу. (Inbox-нота T6, без linked-issue. Dormant — QA-smoke после wiring в Celery, отдельно.)