# -*- coding: utf-8 -*-
import io, sys, os, json
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
todo=json.load(open("todo_upgrade.json",encoding="utf-8"))
items=todo["list"] if isinstance(todo,dict) else todo
# 目标学校：cornell（工程 MS）、vanderbilt（MEng CM）、yale（剩余工程）
target_schools={"cornell","vanderbilt","yale","dartmouth"}
for x in items:
    if x.get("s") in target_schools:
        en=x.get("en","")
        deg=x.get("deg","")
        # 只看硕士，排除博士
        if "PhD" in deg or "博士" in en:
            continue
        det=x.get("det","") or ""
        print(x.get("s"),"|",deg,"|",en[:55],"|",os.path.basename(det),"|",x.get("url","")[:90])
