feat(tradein): пагинация Циан/N1 3→8 страниц #381
2 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ class CianScraper(BaseScraper):
|
||||||
return lots
|
return lots
|
||||||
|
|
||||||
async def fetch_around_multi_room(
|
async def fetch_around_multi_room(
|
||||||
self, lat: float, lon: float, radius_m: int = 1000, pages: int = 3,
|
self, lat: float, lon: float, radius_m: int = 1000, pages: int = 8,
|
||||||
) -> list[ScrapedLot]:
|
) -> list[ScrapedLot]:
|
||||||
"""Скрейп Циан по 1к/2к/3к/4+ × N страниц — расширяет выборку.
|
"""Скрейп Циан по 1к/2к/3к/4+ × N страниц — расширяет выборку.
|
||||||
4 комнаты × 3 страницы × ~28 = до ~330 лотов до дедупликации.
|
4 комнаты × 3 страницы × ~28 = до ~330 лотов до дедупликации.
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ class N1Scraper(BaseScraper):
|
||||||
return lots
|
return lots
|
||||||
|
|
||||||
async def fetch_around_multi_room(
|
async def fetch_around_multi_room(
|
||||||
self, lat: float, lon: float, radius_m: int = 1000, pages: int = 3,
|
self, lat: float, lon: float, radius_m: int = 1000, pages: int = 8,
|
||||||
) -> list[ScrapedLot]:
|
) -> list[ScrapedLot]:
|
||||||
"""Скрейп N1 по сегментам комнат 1/2/3/4 × N страниц — расширяет выборку."""
|
"""Скрейп N1 по сегментам комнат 1/2/3/4 × N страниц — расширяет выборку."""
|
||||||
seen: dict[str, ScrapedLot] = {}
|
seen: dict[str, ScrapedLot] = {}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue