From dad0b34eb1e5c36bd1833eeeb1df143f599f6470 Mon Sep 17 00:00:00 2001 From: karuo Date: Wed, 18 Feb 2026 06:41:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20=E5=8D=A1=E8=8B=A5AI=20=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=202026-02-18=2006:41=20|=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=EF=BC=9A=E6=B0=B4=E6=A1=A5=E5=B9=B3=E5=8F=B0=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?=E3=80=81=E8=BF=90=E8=90=A5=E4=B8=AD=E6=9E=A2=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8F=B0=20|=20=E6=8E=92=E9=99=A4=20>20MB:=205=20=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../水桥_平台对接/智能纪要/脚本/cookie_minutes.txt | 2 + .../智能纪要/脚本/download_soul_minutes_to_chat_dir.sh | 43 +++++++++++++++++++ .../智能纪要/脚本/fetch_minutes_list_by_cookie.py | 6 ++- 运营中枢/工作台/gitea_push_log.md | 1 + 运营中枢/工作台/代码管理.md | 1 + 5 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 02_卡人(水)/水桥_平台对接/智能纪要/脚本/cookie_minutes.txt create mode 100755 02_卡人(水)/水桥_平台对接/智能纪要/脚本/download_soul_minutes_to_chat_dir.sh diff --git a/02_卡人(水)/水桥_平台对接/智能纪要/脚本/cookie_minutes.txt b/02_卡人(水)/水桥_平台对接/智能纪要/脚本/cookie_minutes.txt new file mode 100644 index 00000000..89161edc --- /dev/null +++ b/02_卡人(水)/水桥_平台对接/智能纪要/脚本/cookie_minutes.txt @@ -0,0 +1,2 @@ +PASTE_YOUR_FEISHU_COOKIE_HERE +# Get from: cunkebao.feishu.cn/minutes/home -> search "soul 派对" -> F12 -> Network -> list request -> copy Cookie header diff --git a/02_卡人(水)/水桥_平台对接/智能纪要/脚本/download_soul_minutes_to_chat_dir.sh b/02_卡人(水)/水桥_平台对接/智能纪要/脚本/download_soul_minutes_to_chat_dir.sh new file mode 100755 index 00000000..4a5a5fda --- /dev/null +++ b/02_卡人(水)/水桥_平台对接/智能纪要/脚本/download_soul_minutes_to_chat_dir.sh @@ -0,0 +1,43 @@ +#!/bin/bash +# 一键:用 Cookie 拉取 soul/派对 妙记链接 → 批量下载 TXT 到「聊天记录/soul」 +# 前置:在脚本同目录创建 cookie_minutes.txt 并粘贴飞书妙记页的 Cookie(仅首行有效) +# Cookie 获取:浏览器打开 https://cunkebao.feishu.cn/minutes/home → 搜索「soul 派对」→ F12→网络→找 list 请求→复制 Cookie + +set -e +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +SOUL_DIR="/Users/karuo/Documents/聊天记录/soul" +URLS_FILE="$SCRIPT_DIR/urls_soul_party.txt" + +cd "$SCRIPT_DIR" + +# 1) 若有 Cookie,拉取链接列表 +if [ -f "cookie_minutes.txt" ] && [ -s "cookie_minutes.txt" ]; then + echo "📋 检测到 cookie_minutes.txt,拉取 soul/派对 妙记列表…" + python3 fetch_minutes_list_by_cookie.py || true +fi + +# 2) 检查 url 列表 +if [ ! -f "$URLS_FILE" ] || ! grep -q "feishu.cn/minutes/" "$URLS_FILE" 2>/dev/null; then + echo "❌ urls_soul_party.txt 中无有效链接。" + echo "" + echo "请二选一:" + echo " A) 在脚本同目录创建 cookie_minutes.txt,粘贴飞书妙记列表页的 Cookie,然后重试" + echo " B) 手动编辑 urls_soul_party.txt,每行一个妙记链接(https://cunkebao.feishu.cn/minutes/xxx)" + echo "" + echo "Cookie 获取步骤:" + echo " 1. 打开 https://cunkebao.feishu.cn/minutes/home" + echo " 2. 搜索框输入「soul 派对」" + echo " 3. F12 → 网络 → 找到 list?size= 请求 → 复制请求头中的 Cookie" + exit 1 +fi + +mkdir -p "$SOUL_DIR" +echo "📂 输出目录: $SOUL_DIR" +echo "🚀 开始批量下载…" +python3 batch_download_minutes_txt.py \ + --list "$URLS_FILE" \ + --output "$SOUL_DIR" \ + --skip-existing + +echo "" +echo "✅ 完成。TXT 保存在: $SOUL_DIR" diff --git a/02_卡人(水)/水桥_平台对接/智能纪要/脚本/fetch_minutes_list_by_cookie.py b/02_卡人(水)/水桥_平台对接/智能纪要/脚本/fetch_minutes_list_by_cookie.py index 5232c2fc..cb1c752e 100644 --- a/02_卡人(水)/水桥_平台对接/智能纪要/脚本/fetch_minutes_list_by_cookie.py +++ b/02_卡人(水)/水桥_平台对接/智能纪要/脚本/fetch_minutes_list_by_cookie.py @@ -27,7 +27,11 @@ def get_cookie(): if cookie: return cookie if COOKIE_FILE.exists(): - return COOKIE_FILE.read_text(encoding="utf-8", errors="ignore").strip().splitlines()[0].strip() + raw = COOKIE_FILE.read_text(encoding="utf-8", errors="ignore").strip().splitlines() + for line in raw: + line = line.strip() + if line and not line.startswith("#") and "PASTE_YOUR" not in line: + return line return "" diff --git a/运营中枢/工作台/gitea_push_log.md b/运营中枢/工作台/gitea_push_log.md index a9d5df5d..49053284 100644 --- a/运营中枢/工作台/gitea_push_log.md +++ b/运营中枢/工作台/gitea_push_log.md @@ -22,3 +22,4 @@ | 2026-02-17 18:35:41 | 🔄 卡若AI 同步 2026-02-17 18:35 | 变更 8 个文件 | 排除 >20MB: 4 个 | | 2026-02-17 23:20:32 | 🔄 卡若AI 同步 2026-02-17 23:19 | 更新:Cursor规则、GitHub Actions、总索引与入口、金仓Gitea脚本与配置、金仓、水桥平台对接、水溪整理归档、卡木、火炬、水泉规划拆解等 | 排除 >20MB: 5 个 | | 2026-02-18 00:27:57 | 🔄 卡若AI 同步 2026-02-18 00:27 | 更新:Cursor规则、GitHub Actions、火炬、火眼智能纪要、总索引与入口、运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 5 个 | +| 2026-02-18 06:29:17 | 🔄 卡若AI 同步 2026-02-18 06:29 | 更新:GitHub Actions、运营中枢工作台 | 排除 >20MB: 5 个 | diff --git a/运营中枢/工作台/代码管理.md b/运营中枢/工作台/代码管理.md index 0045fc8a..66cac2b6 100644 --- a/运营中枢/工作台/代码管理.md +++ b/运营中枢/工作台/代码管理.md @@ -25,3 +25,4 @@ | 2026-02-17 18:35:41 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-17 18:35 | 变更 8 个文件 | 排除 >20MB: 4 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) | | 2026-02-17 23:20:32 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-17 23:19 | 更新:Cursor规则、GitHub Actions、总索引与入口、金仓Gitea脚本与配置、金仓、水桥平台对接、水溪整理归档、卡木、火炬、水泉规划拆解等 | 排除 >20MB: 5 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) | | 2026-02-18 00:27:57 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-18 00:27 | 更新:Cursor规则、GitHub Actions、火炬、火眼智能纪要、总索引与入口、运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 5 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) | +| 2026-02-18 06:29:17 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-18 06:29 | 更新:GitHub Actions、运营中枢工作台 | 排除 >20MB: 5 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |