feat(spider): 增强Playwright截图功能以支持打包环境

添加对打包环境的支持,自动检测运行环境并设置正确的浏览器路径
移除重复的截图方法,优化错误日志记录
更新requirements.txt添加playwright依赖
This commit is contained in:
2026-01-19 18:58:50 +08:00
parent 4f64ef61f3
commit f23feaf140
6 changed files with 32 additions and 69 deletions

View File

@@ -4,3 +4,4 @@ beautifulsoup4>=4.12.0
lxml>=4.9.0
openai>=1.0.0
selenium>=4.15.0
playwright>=1.40.0