掘金· alonglong·· 3 小时前精选AI 评分44
本地把 Chrome 会话复用跑通:cookie 解密 + Playwright 注入的工程实录
AI 导读
作者在 macOS 上通过解密 Chrome 本地 Cookie 并注入 Playwright,完成已登录会话的复用,支持表单填充和数据抓取。入场需具备 Playwright、Node.js 环境,掌握 Python 或 JavaScript,使用 Keychain 获取 Chrome Safe Storage 密钥并编写解密脚本。
推荐理由
技术细节完整,适合想用 Playwright 自动化表单填充和数据抓取的开发者。
来源:掘金 · juejin.cn