初始化项目: Web Capture API v1.0.0

功能:
- 网页截图(全页或视口)
- HTML代码提取
- 自动滚动加载动态内容
- 自定义视口大小
- Web界面和RESTful API
- 支持两种后端: agent-browser 和 Playwright
- Docker部署支持

包含:
- Flask REST API
- 前端Web界面
- 测试脚本
- 安装脚本
- Dockerfile和docker-compose
- systemd服务配置
This commit is contained in:
2026-07-04 23:13:33 +08:00
commit ed42f65c56
11 changed files with 1554 additions and 0 deletions

20
docker-compose.yml Normal file
View File

@@ -0,0 +1,20 @@
version: '3.8'
services:
web-capture-api:
build: .
image: web-capture-api:latest
container_name: web-capture-api
ports:
- "5000:5000"
environment:
- TZ=Asia/Shanghai
volumes:
- ./captures:/tmp/web_captures
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s