用户提供 Excel 课程表文件后,用脚本解析:
python3 scripts/class_reminder.py parse <excel文件> [--semester-start YYYY-MM-DD]
支持两种格式:
解析后保存课程数据到 data/schedule.json(在工作区创建)。
# 明天的课程
python3 scripts/class_reminder.py tomorrow data/schedule.json
# 今天的课程
# 指定日期
python3 scripts/class_reminder.py date data/schedule.json --date 2026-04-25
脚本返回的 formatted 字段即为可直接发送的提醒文案。
表格结构:
【实验】网络与系统安全 [1-4节][6-6周] [T2604-T2606]课程信息解析:
特殊处理:
设置每天提醒明日课程:
tomorrow 命令,发送 formatted 文本解析后的课程数据保存到 data/schedule.json,后续查询直接读取,无需重复解析。
--semester-start 覆盖默认值pip install openpyxl共 1 个版本