'commit'
This commit is contained in:
@@ -208,6 +208,15 @@ class TeLaiDianCrawler(BaseCrawler):
|
||||
remaining = max_to_crawl - current_idx
|
||||
logger.info(f"--- [进度: {current_idx}/{max_to_crawl}, 剩余: {remaining}] 处理场站: {name} (坐标: {point}, 距离: {distance}) ---")
|
||||
|
||||
# 组装基础场站信息,便于详情页逻辑使用
|
||||
station_info = {
|
||||
"name": name,
|
||||
"distance": distance,
|
||||
"rect": rect,
|
||||
"click_point": point,
|
||||
"busy_list": piles,
|
||||
}
|
||||
|
||||
# 点击进入详情
|
||||
d.click(point[0], point[1])
|
||||
logger.info(f"已点击场站 '{name}',等待 {WAIT_DETAIL_PAGE_LOAD}s 加载详情页...")
|
||||
@@ -230,7 +239,7 @@ class TeLaiDianCrawler(BaseCrawler):
|
||||
continue
|
||||
|
||||
# 爬取详情
|
||||
await self.crawl_detail_logic(d, station)
|
||||
await self.crawl_detail_logic(d, station_info)
|
||||
if os.path.exists(detail_check_path): os.remove(detail_check_path)
|
||||
|
||||
# 标记为已处理
|
||||
|
||||
Reference in New Issue
Block a user