feat: add browser workbench and managed local launchers
This commit is contained in:
@@ -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("未能核实研招网当前目录年份,已停止写入;请检查登录及目录开放状态")
|
||||
|
||||
Reference in New Issue
Block a user