'commit'
This commit is contained in:
@@ -157,6 +157,20 @@ class YiLaiTeCrawler(BaseCrawler):
|
||||
if before_md5 != after_md5:
|
||||
logger.info(f"成功进入详情页: {name}")
|
||||
|
||||
# 兜底:在进入详情页后,先基于列表页信息一次性写入 Profile 与 Status
|
||||
try:
|
||||
await self.service.save_station_profile_and_status(
|
||||
station_name=name,
|
||||
address=address,
|
||||
total_piles=station.get("total_piles"),
|
||||
free_piles=station.get("free_piles"),
|
||||
piles_detail=None,
|
||||
parking_info=None,
|
||||
distance=distance
|
||||
)
|
||||
except Exception as e:
|
||||
logger.warning(f"兜底写入场站基础信息失败: {name}, {e}")
|
||||
|
||||
# --- 新增:点击“阶段性电价”按钮以获取完整电价列表 ---
|
||||
# 使用 OCR 探测价格入口
|
||||
dqdf_pos = detect_price_info_container_cv(detail_shot)
|
||||
|
||||
Reference in New Issue
Block a user