notcrawl は何をしますか?
ローカルのNotionアーカイブに関する質問にこれを使用します。デスクトップはローカルキャッシュを読み取ります。API同期にはNOTION_TOKENとページアクセス権限が必要です。
ソース
- DB:
~/.notcrawl/notcrawl.db - ページ:
~/.notcrawl/pages - CLI:
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