微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📚

得到内容导出与格式转换助手

得到 Skill · v0.1.1
办公 安全 B 级 作者 angjustinl 公开目录收录
970 下载 1 安装 3.6k 收藏 71 浏览

简介

第三方得到App内容下载工具,支持课程、电子书、听书批量导出为Markdown/PDF/MP3,存在账号封禁与版权合规风险

原始描述

Handles interactions with the dedao-dl CLI tool for downloading and managing content from the Dedao (得到) App. Use when the user wants to list bought courses,...

通过你的 Agent 添加

安装目录:dedao-dl/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/skill-54908/
Codex CLI~/.codex/skills/skill-54908/
DeepSeek Harness~/.agents/skills/skill-54908/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

dedao-dl Skill 是一款面向得到(Dedao)App 用户的课程内容管理工具,通过封装第三方 CLI 工具实现付费内容的本地化归档。用户需先通过二维码或 Cookie 完成登录验证,随后可执行三类核心操作:

  1. 内容发现:使用 course/ebook/odob 等命令列出已购专栏、电子书、每天听本书,获取对应内容 ID;免费专区内容需使用 free 命令获取 EnID 格式的标识符。

  2. 精准下载:Skill 强制推荐单篇文章下载模式——先通过 course -i <ID> 查看课程目录,再使用 dl <课程ID> <文章ID> -t 3 导出 Markdown 格式。此方式避免触发平台反爬机制,且 Markdown 无需额外依赖、便于二次编辑。

  3. 格式转换:支持 PDF(需 wkhtmltopdf)、MP3(需 ffmpeg)、EPUB 等多种输出格式,电子书还支持笔记导出功能。系统默认优先使用 Markdown 以保证兼容性和处理效率。

显著优点

  • 多格式灵活输出:覆盖知识工作者常用的 Markdown、PDF、EP3 等格式,满足笔记整理、打印阅读、音频随身听等多元场景。
  • 本地-first 架构:所有数据处理均在本地完成,登录凭据以 Cookie 形式存储,不涉及云端账号密码托管,隐私可控性较强。
  • 批量与单篇兼顾:在明确授权前提下支持整课程合并下载(-m 参数),单篇模式则大幅降低封号风险。
  • 零依赖设计:核心功能仅依赖 Python 标准库,降低环境配置门槛。

潜在缺点与局限性

  • 供应链安全风险:Skill 运行时从 GitHub Releases 动态下载第三方二进制文件,无签名验证或哈希校验机制,存在被供应链攻击的隐患。
  • 平台合规边界模糊:自动化下载得到 App 内容可能违反用户协议,存在账号受限风险;Skill 文档已明确警示批量下载的后果,但无法完全规避。
  • 功能依赖上游项目:核心能力完全依赖 yann0917/dedao-dl 社区项目,若上游停止维护或接口变更,Skill 将失效。
  • 格式支持不完整:音频/视频生成需用户自行安装 ffmpeg/wkhtmltopdf,对非技术用户存在配置门槛。

适合的目标群体

  • 得到重度付费用户:已购买大量专栏/电子书,希望构建个人本地知识库进行全文检索或长期存档。
  • 笔记整理爱好者:习惯使用 Obsidian、Notion 等工具管理学习笔记,需要将得到内容转换为 Markdown 导入。
  • 离线场景需求者:经常处于无网络环境(如长途航班、地铁通勤),希望预下载音频/文本内容。
  • 技术背景用户:能够理解 Cookie 登录、命令行操作,具备基础的风险判断能力。

常规使用风险

  • 账号安全风险:频繁或批量下载可能触发得到平台的风控策略,导致临时限流甚至账号异常;建议控制下载频率,优先单篇获取。
  • 供应链投毒风险:安装的第三方二进制文件未经完整性验证,若上游 Release 被篡改,可能导致本地执行恶意代码。
  • 隐私数据泄露:登录 Cookie 存储于本地文件,若设备共享或丢失,存在被他人冒用的风险。
  • 性能与存储风险:完整课程下载可能占用数 GB 磁盘空间,Markdown 合并大文件时内存消耗较高;PDF 生成受网络延迟影响可能出现 "496 NoCertificate" 错误。

技能正文


name: dedao-dl description: Handles interactions with the dedao-dl CLI tool for downloading and managing content from the Dedao (得到) App. Use when the user wants to list bought courses, ebooks, audiobooks, or download them in various formats (PDF, MP3, Markdown, EPUB).

dedao-dl

This skill guides the agent in using the dedao-dl CLI tool to interact with the Dedao (得到) app content.

Initialization

MANDATORY FIRST STEP: Before using any dedao-dl commands for the first time, you MUST run the installation script and verify the CLI is available.

Run the script to download the latest binary for the current OS:

python scripts/install_dedao_dl.py

After installation, you should ALWAYS use the helper script scripts/run_dedao.py to execute commands instead of running the raw dedao-dl executable. The helper script cleans up the CLI's terminal formatting, making the output directly readable by you without needing to redirect it to text files. Example: Use python scripts/run_dedao.py -h instead of ./dedao-dl -h.

Prerequisites & Login

Before downloading any content, ensure the user is logged in:

  • Command: python scripts/run_dedao.py login -q (QR code login) or python scripts/run_dedao.py login -c "<cookie_string>"
  • Verify current user: python scripts/run_dedao.py who
  • List logged-in users: python scripts/run_dedao.py users
  • Switch user: python scripts/run_dedao.py su

Dependencies for specific formats (inform the user if they are missing):

  • PDF generation requires wkhtmltopdf
  • Audio generation requires ffmpeg
  • Markdown requires no additional dependencies

General Workflow

For any content download, the typical two-step workflow is:

  1. List the specific type of content to find its ID.
  2. Use the corresponding download command with the ID and format flag (-t).

Key Workflows & Commands

1. Courses (专栏/课程) & Free Content (免费专区)

  • List purchased courses: python scripts/run_dedao.py course
  • List free courses: python scripts/run_dedao.py free (Returns EnID strings instead of integer IDs)
  • List articles in a course:
    • For purchased courses (using integer ID): python scripts/run_dedao.py course -i <course_ID>
    • For free courses (using EnID): python scripts/run_dedao.py article -c <course_EnID>
  • Download a single article (RECOMMENDED): python scripts/run_dedao.py dl <course_ID_or_EnID> <article_ID> -t <format>
  • Download a full course: python scripts/run_dedao.py dl <course_ID_or_EnID> -t <format> [options]
    • WARNING: NEVER download a full course (only 1 parameter) without explicit user permission. Full downloads can take hours, consume massive disk space, and trigger anti-bot bans.
    • Formats (-t): 1 (MP3), 2 (PDF), 3 (Markdown, DEFAULT FOR THE AGENT)
    • Options for Markdown (-t 3): -m (merge into one file), -c (include hot comments)
    • Prefix ordering: -o (adds index prefix like 00x.) Note: When downloading as PDF, be aware of rate limits ("496 NoCertificate"). Add sleep intervals if scripting.

2. E-Books (电子书)

  • List e-books: python scripts/run_dedao.py ebook
  • Download an e-book: python scripts/run_dedao.py dle <ebook_ID> -t <format>
    • Formats (-t): 1 (HTML, default), 2 (PDF), 3 (EPUB), 4 (Markdown Notes)
  • View e-book notes: python scripts/run_dedao.py ebook notes -i <ebook_ID>
  • Export e-book notes: python scripts/run_dedao.py dle <ebook_ID> -t 4 (Downloads notes as Markdown)

3. Audiobooks (每天听本书)

  • List audiobooks: python scripts/run_dedao.py odob
  • Download audiobook audio/text: python scripts/run_dedao.py dlo <audiobook_ID> -t <format>
    • Formats (-t): 1 (MP3), 2 (PDF), 3 (Markdown, DEFAULT FOR THE AGENT)

4. Other Content

  • List all categories & stats: python scripts/run_dedao.py cat
  • List 'JinNang' (锦囊): python scripts/run_dedao.py ace
  • List recommended topics (知识城邦): python scripts/run_dedao.py topic

Execution Guidelines

  • Always check python scripts/run_dedao.py -h or python scripts/run_dedao.py <command> -h if unsure of the exact arguments.
  • Always retrieve the correct ID first before executing a download command. Make sure you use the list command corresponding to the content type you want to download (e.g., course ID for dl, ebook ID for dle, odob ID for dlo). Do not mix up IDs across categories.
  • NEVER download an entire course (e.g. python scripts/run_dedao.py dl <course_ID_or_EnID>) unless the user explicitly asks you to. Many courses have hundreds of articles which can lead to account bans.
  • ALWAYS favor downloading a single article: First list the course articles using course -i <course_ID> or article -c <course_EnID>, find the specific article ID, and use python scripts/run_dedao.py dl <course_ID_or_EnID> <article_ID>.
  • DEFAULT FORMAT: Whenever you download content using dl or dlo, default to using -t 3 (Markdown) unless the user explicitly asks for MP3 or PDF. Markdown is safer, faster, and easier to read.
  • When generating markdown for a whole course (if permitted by the user), consider using -m to consolidate files unless the user explicitly asks for individual files.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

content-downloadebookpdfcli-toolmarkdownknowledge-managementoffline-access

同类 Skill