refactor(tradein): avito search — remove jitter (C-5) + mobile API dead code + parse houseLinks #441

Merged
lekss361 merged 1 commit from feat/tradein-avito-search-refactor into main 2026-05-23 11:55:19 +00:00

1 commit

Author SHA1 Message Date
lekss361
931396819b refactor(tradein): avito search — remove jitter (C-5) + mobile API dead code + parse houseLinks
- DELETE _fetch_via_mobile_api + _mobile_item_to_lot (200 LOC dead code, H-6 audit)
- DELETE _RE_AVITO_STATE + _extract_avito_state + _items_from_state (state empty since 2025)
- DELETE _state_item_to_lot (unused after state path removal)
- FIX C-5: _dom_card_to_lot now sets lat=lon=None (no anchor+jitter silent corruption)
  Точные coords придут из avito_detail.py (Stage 2b) или geocode-missing cron
- ADD parse <a href="/catalog/houses/..."> -> house_source/house_ext_id/house_url
- ADD listing_segment detection (vtorichka/novostroyki) from item URL pattern
- EXTEND ScrapedLot (base.py): 4 новых поля
- EXTEND save_listings INSERT: 4 новых колонок

Refs: Stage 2a of AvitoScraper_v2 plan.
2026-05-23 14:48:57 +03:00