feat(scrapers): cian SERP на BrowserFetcher (camoufox), снят code-side rotate (#1806) #1810
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#1810
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/cian-serp-browser"
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 #1806 (epic #883 Phase 2).
Что
cian.py: убран curl_cffi,__aenter__→BrowserFetcher(source="cian")(+__aexit__закрывает). Warm-up GET удалён (camoufox держит сессию server-side)._fetch_page_html+fetch_around→await self._browser.fetch(url). State-парсинг (_parse_serp_html/extract_state) без изменений (браузер отдаёт полный SSR)._rotate_ip→ no-opreturn False(прокси ротирует сам per-request). Captcha-ретрай в_walk_price_range→ повторный fetch на свежем IP.Тесты
85 passed (SERP/exhaustive/city-sweep/session) + 130 (расширенный). +5 транспорт-тестов. (1 fail
test_cian_valuation::test_cache_hit— pre-existing на main, вне diff.)На ревью
_rotate_ipno-op: проверить, что мокающие тесты не сломаны (worker: зелёные).test_cian_valuationfail — отдельный issue, не блок этого PR.