This commit is contained in:
HuangHai
2026-01-14 10:43:46 +08:00
parent 068cb63274
commit bf553ce232
6 changed files with 17 additions and 4 deletions

View File

@@ -84,10 +84,13 @@ class TeLaiDianCrawler(BaseCrawler):
await self.clear_ads(d)
# [优化] 向下滚动以刷新/校准地理位置
logger.info("执行下拉操作以刷新校准地理位置...")
d.swipe_ext("down", scale=0.6)
logger.info("等待 2 秒让位置校准生效...")
await asyncio.sleep(2.0)
# 使用更加显式的 swipe 方式:从屏幕 30% 划到 80%
w, h = d.window_size()
logger.info(f"执行显式下拉刷新操作: (x={w//2}, y1={int(h*0.3)} -> y2={int(h*0.8)})")
d.swipe(w // 2, int(h * 0.3), w // 2, int(h * 0.8), duration=0.5)
logger.info("等待 2.5 秒确保位置校准和列表刷新完成...")
await asyncio.sleep(2.5)
processed_count = 0
last_md5 = None