home / kengdb / otherNoteTb

otherNoteTb: 1489

This data as json

id source method user_id
1489 google_keep # Google Keep 搬家接口方法 ## 推荐方式:Google Takeout 导出 Google Keep 没有公开 API,最稳妥方式是 Google Takeout。 ### 导出步骤 1. 访问 https://takeout.google.com 2. 取消全选,只勾选 "Keep"。 3. 导出后得到一个 zip,里面包含 `.json` 和 `.html` 文件,每条笔记一个文件。 4. 在 keng "笔记搬家" 页面上传该 zip 文件。 ## 文件格式(JSON) ```json { "title": "笔记标题", "textContent": "笔记正文", "labels": [{"name": "标签1"}, {"name": "标签2"}], "isTrashed": false, "isArchived": false, "createdTimestampUsec": 1234567890000000, "userEditedTimestampUsec": 1234567890000000 } ``` ## 搬家流程 1. 解压 zip,遍历 `*.json` 文件,过滤 `isTrashed=true` 的笔记。 2. `textContent` 作为 content,`labels` 作为 tags。 3. 写入 keng;comment 写 `source=google_keep; source_id={filename_without_ext}`。 1
Powered by Datasette · Queries took 3.676ms