网页截图 / HTML / 可读文本 提取服务
正在处理,请稍候...
| 时间 | 类型 | 调用者 | 方式 | 网址 | 标题 | 状态 | 操作 |
|---|
重要提示:
data/html/<月份>/(详情里可点「📄 原始HTML文件」查看)caller(或请求头 X-Caller/X-Project)即可在历史里显示项目名;带 call_method 或 X-From 标注调用方式,缺省按 Referer 自动判定 web/apiAPI 调用:
POST /api/capture
{
"url": "https://example.com",
"action": "smart", // "screenshot" | "html" | "text" | "smart"
"wait_time": 15000, // 重要!验证网站需设置较长等待
"scroll_times": 3, // 可选:加载动态内容
"scroll_delay": 1000, // 可选:滚动间隔
"full_page": true, // 可选:全页截图
"backend": "auto", // 可选:auto(默认,优先playwright,失败回退agent-browser) / playwright / agent-browser / chrome-cdp
"caller": "news-tracker", // 可选:调用者标识(历史记录里显示,默认游客)
"call_method": "api", // 可选:调用方式 web/api(缺省自动判定)
"viewport": {"width":1280,"height":700},
"smart_config": { // 可选:临时覆盖按需截图配置(接口列表按顺序=优先级,失败自动降级)
"endpoints": [
{"name":"本地Qwen", "base_url":"http://121.40.164.32:18008/v1", "api_key":"xxxx", "model":"unsloth/Qwen3.8-27B-NVFP4", "enabled":true},
{"name":"Kimi", "base_url":"https://api.siliconflow.cn/v1", "api_key":"sk-xxx", "model":"Pro/moonshotai/Kimi-K2.6", "enabled":true}
],
"max_scrolls": 20,
"scroll_ratio": 0.85
}
}
GET /api/smart/config // 获取智能截图配置(含 endpoints 多接口列表)
POST /api/smart/config // 保存配置(body: {config:{endpoints:[...], prompt, max_scrolls,...}})
POST /api/smart/test // 测试指定接口(body: {endpoint_id} 或 {endpoint:{...}} 或旧版 {config:{...}})
GET /api/history?page=1&page_size=15&action=all&search=关键词 // 历史分页
GET /api/history/stats?dimension=day&days=30 // 历史统计(dimension: day/action/backend/status/caller/method)
GET /api/history/<id> // 历史详情
GET /api/history/<id>/file // 历史截图文件
DELETE /api/history/<id> // 删除历史