SuperAPI AI 工具集

web-recap

数据与分析

查看项目

更新于 10-16 01:27

技能介绍

用途:web-recap 用于从浏览器中提取历史记录,并按主题或访问统计查找 URL,适合回答关于访问过的网站、浏览历史或近期在线活动的问题。

主要能力:支持从 Chrome、Chromium、Brave、Firefox、Safari、Edge 提取历史。输出为 JSON,包含 entries 数组,每条记录含 timestamp、url、title、domain、visit_count、browser。

使用方式:需先安装 web-recap CLI 并确保在 PATH 中,可用 web-recap --help 检查。安装发布二进制(以 macOS Apple Silicon 为例,需选择匹配平台的资源): curl -L https://github.com/robzolkos/web-recap/releases/latest/download/web-recap-darwin-arm64 -o ~/.local/bin/web-recap chmod +x ~/.local/bin/web-recap 或从源码构建(需 Go 1.21+): git clone https://github.com/robzolkos/web-recap.git && cd web-recap && go build ./cmd/web-recap

常用参数:--date YYYY-MM-DD 指定日期(本地时区);--start-date 与 --end-date 指定范围;--time HH 指定小时;--browser NAME 可选 chrome|firefox|safari|edge|brave|auto。

使用建议:不要直接输出原始结果,建议用 jq 减少 token。例如按主题搜索:web-recap | jq '[.entries[] | select(.title + .domain + .url | test("KEYWORD"; "i"))] | unique_by(.url) | map({title, url, domain})';统计域名访问次数:web-recap | jq '[.entries[].domain] | group_by(.) | map({domain: .[0], count: length}) | sort_by(-.count)';查看元数据:web-recap | jq '{start: .start_date, end: .end_date, total: .total_entries}'。

限制:资料未提供收费、价格、平台兼容性细节、效果保证或更多使用步骤,暂未提供相关信息。