'commit'
This commit is contained in:
@@ -231,7 +231,7 @@ async def get_station_list(d, service, max_stations_count=MAX_STATIONS_COUNT):
|
||||
logger.warning(f"'分时价格'按钮识别坐标 ({click_x}, {click_y}) 落在底部安全区域 (>= {bottom_safe_y}),为避免误触底部扫码/导航按钮,本次不点击。")
|
||||
else:
|
||||
d.click(click_x, click_y)
|
||||
await asyncio.sleep(2)
|
||||
await asyncio.sleep(0.5)
|
||||
|
||||
# 检查页面是否真的变化了
|
||||
after_click_path = take_screenshot(d, f"check_{detail_uuid}", save_dir=TEMP_IMAGE_DIR)
|
||||
|
||||
Binary file not shown.
@@ -307,7 +307,7 @@ async def get_station_list(d, service, uploader, max_stations_count=MAX_STATIONS
|
||||
|
||||
if click_pos:
|
||||
d.click(click_pos[0], click_pos[1])
|
||||
await asyncio.sleep(1.5)
|
||||
await asyncio.sleep(0.5)
|
||||
|
||||
# 检查页面是否真的变化了
|
||||
after_click_path = take_screenshot(d, f"check_{detail_uuid}", save_dir=TEMP_IMAGE_DIR)
|
||||
|
||||
Binary file not shown.
@@ -180,7 +180,7 @@ class YiLaiTeCrawler(BaseCrawler):
|
||||
if dqdf_pos:
|
||||
logger.info(f"发现价格入口按钮 (阶段性电价/当前电费) {dqdf_pos},点击进入...")
|
||||
d.click(dqdf_pos[0], dqdf_pos[1])
|
||||
await asyncio.sleep(2) # 等待列表加载
|
||||
await asyncio.sleep(0.5) # 等待列表加载
|
||||
# 删除旧的详情页截图
|
||||
if os.path.exists(detail_shot): os.remove(detail_shot)
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user