# leica **Repository Path**: phaeris/leica ## Basic Information - **Project Name**: leica - **Description**: 自研实时截图服务 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://github.com/PhaerisWakfu/leica - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-01 - **Last Updated**: 2025-01-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: 截图, screenshot ## README ### 说明 - 使用无头浏览器实现输入网址获取实时截图 ### 使用 #### 下载chrome浏览器及其相对应的chromedriver 一定要版本对应,不然启动时会提示你版本不符的 ``` https://googlechromelabs.github.io/chrome-for-testing/#stable ``` #### 添加配置 ```yaml leica: web-driver: #下载的浏览器驱动所在路径 driver-path: /xxx #浏览器所在路径 binary-path: /xxx ``` #### 截图 ``` GET http://localhost:8080/screenshot?url=https://www.baidu.com ```