fix(gdgxk): 打通登录全链路(图形验证码 OCR + 正确换票入口)
- 登录要过 4 位图形验证码:readCaptcha 返回 data:image/png;base64,用 ddddocr 识别, 失败按登录页 #errorText 判断原因并最多重试 5 次 - 换票入口纠正:票按 ITLMS-xxx||ticketId 两段 GET /nts/loginToStoreByAccount, 之前直接带 ?ticket= 访问 courseRegister 是无效的 - requirements / pyproject 增加 ddddocr;文档同步实测结论
This commit is contained in:
@@ -14,6 +14,7 @@ dependencies = [
|
||||
"beautifulsoup4>=4.12",
|
||||
"lxml>=5.0",
|
||||
"playwright>=1.40",
|
||||
"ddddocr",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
|
||||
Reference in New Issue
Block a user