本项目用于:在 https://gemini.google.com/app 批量为历史对话生成 public share link(公开分享链接),再从 https://gemini.google.com/sharing 批量导出 对话标题 + 分享链接(JSON/CSV),并导入到本地可检索的库(SQLite / 桌面端)中,方便你跨多个个人账号快速检索与复用。
重要说明:Gemini 的 /sharing 页面写明:公开链接仅在该对话仍保留在 Gemini Apps Activity 中时可用;若对话任意部分被删除,对应公开链接也会失效。因此请把它理解为“长期可用”,但不保证永久。





/sharing 导出 JSON / 导出 CSV / public links exportGemini / Google Gemini / Google Bard(旧称) / public share link / share conversation / 分享对话 / 公开分享链接 / /share / /sharing / export public links / chat export / conversation export / chat history backup / PKM / second brain / 本地知识库 / SQLite / FTS5 / BM25 / fuzzy search / semantic search / vector search / Qdrant / Tauri / Tampermonkey
/sharing 导出 JSON/CSV。说明:本仓库开源部分聚焦“用户侧链路”(脚本 + 本地库 + 桌面端检索/管理)。涉及后台/管理员/支付的内容不在开源范围内(已在仓库忽略)。
1)浏览器端自动化(Tampermonkey 用户脚本)
- userscripts/gemini_bulk_share.user.js
- 在 https://gemini.google.com/app:批量触发“Share conversation / 分享对话”,为对话生成公开链接。
- 在 https://gemini.google.com/sharing:自动滚动加载并导出公开链接清单 JSON/CSV。
- userscripts/gemini_bulk_import.user.js
- 在 https://gemini.google.com/share/*:批量点击 “Continue this chat”,把共享对话导入到“当前已登录”的目标 Gemini 账号(建议用独立浏览器 Profile 登录目标账号)。
2)本地数据库导入/检索(Python 命令行)
- scripts/gemini_links_db.py
- 将导出的 JSON/CSV 增量导入 SQLite(按 url 去重/更新)。
- 支持按子串搜索(title/url)与查看账号列表。
3)桌面端应用(Tauri v2 + React)
- apps/desktop
- 导入 JSON/CSV 到本地 SQLite 库。
- 使用 SQLite FTS5 做本地全文检索(title/notes/tags),支持备注/标签/收藏。
- 支持多库管理(一个库=一个 SQLite 文件),可选跨库检索。
docs/work/使用文档/小白教程/Gemini 批量分享链接/README.mddocs/work/使用文档/调研技术/README.md对每个 Gemini 个人账号重复以下步骤:
https://gemini.google.com/appuserscripts/gemini_bulk_share.user.js 全部内容粘贴进去并保存https://gemini.google.com/sharing,点击 “导出 JSON”(或 “导出 CSV”)随后在本地导入与检索(两种方式任选其一):
python3 scripts/gemini_links_db.py init --db data/gemini_links.sqlite3
python3 scripts/gemini_links_db.py import --db data/gemini_links.sqlite3 --file /path/to/export.json
python3 scripts/gemini_links_db.py search --db data/gemini_links.sqlite3 --q "NuScenes"
python3 scripts/gemini_links_db.py accounts --db data/gemini_links.sqlite3
开发模式运行:
npm -C apps/desktop install
npm -C apps/desktop run tauri dev
然后在 App 界面里导入 JSON/CSV 并进行本地检索。
导出的 JSON/CSV 至少包含:
account:账号标签(面板里设置)title:对话标题url:https://gemini.google.com/share/...created_text:Gemini 页面显示的 “Created ...” 行(尽力抓取)scraped_at:导出时间本仓库维护两份完整 README:
README.md(中文)README.en.md(English)当你修改功能、UI 文案、路径、命令、或新增/删除组件时,请同时更新两份 README,保证中英文内容一致(避免“文档落后于代码”)。
$ claude mcp add Gog_ac_deal \
-- python -m otcore.mcp_server <graph>