Outbound Login
技能描述
这个技能负责登录外呼系统,并通过 save_session.py 记录当前浏览器登录态,输出 auth.json 给后续外呼技能复用。
执行方式
- 在项目根目录准备凭证文件
login_credentials.json - 文件格式参考
login_credentials.example.json - 运行:
python3 save_session.py - 脚本会自动打开登录页并填写账号密码
- 在浏览器中手动完成验证码并点击登录
- 登录成功后,脚本会自动保存
auth.json
输出
auth.json
依赖文件
save_session.pylogin_credentials.json
注意事项
- 环境中必须已安装 Playwright 和 Chromium
- 安装命令:
python3 -m pip install playwrightpython3 -m playwright install chromium - 如果
auth.json已失效,需要重新执行本技能 - 验证码需要人工处理,本技能不负责自动识别或自动计算验证码
- 执行时需要本机可正常打开浏览器并完成登录