← 返回
安全合规 中文

SlipBot Kindle Importer

Import reading notes from Kindle HTML exports into the slipbox. Use when user sends a Kindle notebook export file (HTML/XHTML). Parses book title and author, extracts only user's Notes (skips Highlights), then runs slipbot for each.
将Kindle HTML导出的阅读笔记导入卡片盒。当用户发送Kindle笔记本导出文件(HTML/XHTML)时使用。解析书名与作者,仅提取用户笔记(跳过高亮),并对每条笔记运行slipbot。
jrswab
安全合规 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 1,088
下载
💾 28
安装
1
版本
#latest

概述

Kindle Import

Parse Kindle notebook exports (HTML) and create slipbox entries for user's notes.

Input Format

Kindle exports are XHTML files with this structure:

<div class="bookTitle">Book Title Here</div>
<div class="authors">Author Name</div>
...
<div class="sectionHeading">Chapter/Section Name</div>
<div class="noteHeading">Highlight (yellow) - Section > Page X</div>
<div class="noteText">Highlighted text from book</div>
<div class="noteHeading">Note - Section > Page X</div>
<div class="noteText">User's own note</div>

Key distinction:

  • noteHeading starting with "Highlight" → book text → Skip
  • noteHeading starting with "Note" → user's own thoughts → Import

Parsing Rules

Metadata Extraction

  1. Book title: content of .bookTitle div
  2. Author: content of .authors div
  3. Source type: book

Content Extraction

  1. Find all .noteHeading elements
  2. If heading starts with "Note" → get the following .noteText content → import
  3. If heading starts with "Highlight" → skip
  4. Section info (e.g., "Client-side/Stateless Sessions > Page 28") can be ignored

Workflow

  1. Parse file → extract book title and author
  2. Extract user notes → collect only Note entries (not Highlights)
  3. Precheck → show user: book title, author, note count, ask for confirmation
  4. On confirmation → for each note, invoke slipbot:
    • Type: note (- prefix)
    • Source: ~ book, {title} by {author}
    • Let slipbot handle: filename, tags, links, graph update
  5. Report → count of notes created

Example

Input file metadata:

  • Title: "The JWT Handbook"
  • Author: "Sebastian E Peyrott"

Parsed entries:

Highlight (yellow) - Page 28: "This is easily solved by..." → SKIP
Note - Page 28: "Applications should not allow unsigned JWTs..." → IMPORT

Slipbot call:

- Applications should not allow unsigned JWTs to be considered valid. ~ book, The JWT Handbook by Sebastian E Peyrott

Edge Cases

  • No user notes (only Highlights): Report "no notes to import"
  • Multiple authors: Preserve as-is from the file
  • Missing author: Use "Unknown" as author
  • Special characters in title/content: Preserve as-is
  • HTML entities: Decode before storing (& → &, etc.)

Supported File Types

  • .html files exported from Kindle app
  • XHTML files (same structure)
  • Files sent via Telegram (application/xml or text/plain mime types)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 01:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,508
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,607
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,718