feat: add browser workbench and managed local launchers

This commit is contained in:
Codex
2026-10-11 14:00:14 +08:00
parent 389b2aa3a5
commit 23f3a15a15
17 changed files with 627 additions and 0 deletions
+1
View File
@@ -23,6 +23,7 @@ class CatalogClient:
response = self.transport.request("GET", self.BASE)
text = re.sub("<[^>]*>", " ", response.text)
matches = re.findall(r"(20\d{2})\s*年.{0,30}(?:硕士|招生|专业目录)", text)
matches.extend(re.findall(r"\bcurYear\s*:\s*['\"](20\d{2})['\"]", response.text))
years = set(map(int, matches))
if not years:
raise SourceYearMismatch("未能核实研招网当前目录年份,已停止写入;请检查登录及目录开放状态")