网页截图 / 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": { // 可选:临时覆盖按需截图 LLM 配置
"base_url": "https://www.autodl.art/api/v1",
"api_key": "sk-xxx",
"model": "qwen3.6-plus",
"max_scrolls": 20,
"scroll_ratio": 0.85
}
}
GET /api/smart/config // 获取按需截图 LLM 配置
POST /api/smart/config // 保存配置(body: {config:{...}})
POST /api/smart/test // 测试连接(body: {config:{...}} 可选)
GET /api/history?page=1&page_size=15&action=all&search=关键词 // 历史分页
GET /api/history/<id> // 历史详情
GET /api/history/<id>/file // 历史截图文件
DELETE /api/history/<id> // 删除历史