notcrawl 是做什麼的?
使用此技能處理本機 Notion 歸檔問題。桌面模式讀取本地快取;API 同步需要 NOTION_TOKEN 與頁面存取權限。
來源
- 資料庫:
~/.notcrawl/notcrawl.db - 頁面:
~/.notcrawl/pages - 命令列工具:
notcrawl
重新整理
notcrawl doctor
notcrawl status
notcrawl sync --source desktop
僅在需要且已提供憑證與頁面存取權限時使用 API:
notcrawl sync --source api
查詢工作流程
- 若問題涉及近期或目前的 Notion 內容,先檢查資料庫新鮮度。
- 優先使用頁面搜尋;若需精確計數或結構層級分析,則使用唯讀 SQL。
- 當使用者需要重新整理 Markdown 檔案時,使用
export-md。 - 回報日期範圍、頁面/資料庫 ID、計數與來源限制。
使用根指令或子指令的說明來查看語法:notcrawl --help、
notcrawl search --help、notcrawl sql --help。
常用指令:
notcrawl search --limit 20 "查詢字串"
notcrawl databases
notcrawl sql "select count(*) from pages;"
notcrawl export-md