""" 主程序 - 使用离散备料计划维护数据提取工具 """ import os from utils.离散备料计划维护数据提取 import DiscreteMaterialPlanExtractor def main(): # 创建提取器 extractor = DiscreteMaterialPlanExtractor( username="BLDpengqiangqiang", password="Cqbld123456.", headless=True, verbose=True ) # 设置文件路径 order_id_file = os.path.join(os.path.dirname(__file__), "orderID.txt") output_file = r"D:/python/playwrite/data/离散备料计划维护_合并.xlsx" # 执行提取 extractor.extract(order_id_file, output_file) input("按回车退出...") if __name__ == "__main__": main()