🌐 Web Capture

网页截图 / HTML / 可读文本 提取服务

自动 = 优先 agent-browser,打开页面超时自动回退 Playwright(推荐)
某些网站需要较长验证过程,可设置为 10000-30000

正在处理,请稍候...

捕获结果

📜 提取历史

时间 类型 调用者 方式 网址 标题 状态 操作

📚 使用说明

重要提示:

API 调用:

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": "playwright",    // 可选:playwright / agent-browser
  "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>        // 删除历史