Skills dedao-dl
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).
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/angjustinl/dedao-dl-skill" ~/.claude/skills/openclaw-skills-dedao-dl && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/angjustinl/dedao-dl-skill" ~/.openclaw/skills/openclaw-skills-dedao-dl && rm -rf "$T"
manifest:
skills/angjustinl/dedao-dl-skill/SKILL.mdsource content
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:
(QR code login) orpython scripts/run_dedao.py login -qpython 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:
- List the specific type of content to find its
.ID - Use the corresponding download command with the
and format flag (ID
).-t
Key Workflows & Commands
1. Courses (专栏/课程) & Free Content (免费专区)
- List purchased courses:
python scripts/run_dedao.py course - List free courses:
(Returnspython scripts/run_dedao.py free
strings instead of integerEnID
s)ID - 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>
- For purchased courses (using integer ID):
- 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
(MP3),1
(PDF),2
(Markdown, DEFAULT FOR THE AGENT)3 - Options for Markdown (
):-t 3
(merge into one file),-m
(include hot comments)-c - Prefix ordering:
(adds index prefix like-o
) Note: When downloading as PDF, be aware of rate limits ("496 NoCertificate"). Add sleep intervals if scripting.00x.
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
(HTML, default),1
(PDF),2
(EPUB),3
(Markdown Notes)4
- Formats (
- View e-book notes:
python scripts/run_dedao.py ebook notes -i <ebook_ID> - Export e-book notes:
(Downloads notes as Markdown)python scripts/run_dedao.py dle <ebook_ID> -t 4
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
(MP3),1
(PDF),2
(Markdown, DEFAULT FOR THE AGENT)3
- Formats (
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
orpython scripts/run_dedao.py -h
if unsure of the exact arguments.python scripts/run_dedao.py <command> -h - Always retrieve the correct
first before executing a download command. Make sure you use the list command corresponding to the content type you want to download (e.g.,ID
ID forcourse
,dl
ID forebook
,dle
ID forodob
). Do not mix up IDs across categories.dlo - NEVER download an entire course (e.g.
) unless the user explicitly asks you to. Many courses have hundreds of articles which can lead to account bans.python scripts/run_dedao.py dl <course_ID_or_EnID> - ALWAYS favor downloading a single article: First list the course articles using
orcourse -i <course_ID>
, find the specific article ID, and usearticle -c <course_EnID>
.python scripts/run_dedao.py dl <course_ID_or_EnID> <article_ID> - DEFAULT FORMAT: Whenever you download content using
ordl
, default to usingdlo
(Markdown) unless the user explicitly asks for MP3 or PDF. Markdown is safer, faster, and easier to read.-t 3 - When generating markdown for a whole course (if permitted by the user), consider using
to consolidate files unless the user explicitly asks for individual files.-m