Export and sync Douban (豆瓣) book/movie/music/game collections to local CSV files (Obsidian-compatible). Use when the user wants to export their Douban readin...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install douban-sync-skill或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install douban-sync-skill⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/douban-sync-skill/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: douban-sync description: Export and sync Douban (豆瓣) book/movie/music/game collections to local CSV files (Obsidian-compatible). Use when the user wants to export their Douban reading/watching/listening/gaming history, set up incremental sync via RSS, or manage their Douban data locally. metadata: {"openclaw": {"requires": {"env": ["DOUBAN_USER"]}, "primaryEnv": "DOUBAN_USER"}} ---
Export Douban collections (books, movies, music, games) to CSV and keep them in sync via RSS.
Use the browser tool to scrape all collection pages. Requires the user to be logged into Douban.
browser → douban.com/people/{USER_ID}/{category}?start=0&sort=time&mode=list
Categories and URL paths:
book.douban.com/people/{ID}/collect (读过), /do (在读), /wish (想读)movie.douban.com/people/{ID}/collect (看过), /do (在看), /wish (想看)music.douban.com/people/{ID}/collect (听过), /do (在听), /wish (想听)www.douban.com/people/{ID}/games?action=collect (玩过), =do (在玩), =wish (想玩)Each page shows up to 30 items in list mode (some pages may have fewer due to delisted entries). Paginate with ?start=0,30,60... — the script uses the paginator's "next" button to determine whether to continue.
Rate limiting: Wait 2-3 seconds between pages. If blocked, wait 30 seconds and retry.
Scripts:
scripts/douban-scraper.mjs — HTTP-only, no browser needed (may get rate-limited)scripts/douban-browser-scraper.mjs — via Puppeteer CDP, needs a running browserscripts/douban-extract.mjs — generates a browser console script for manual extractionRun scripts/douban-rss-sync.mjs — no login needed.
node scripts/douban-rss-sync.mjs
Setup: Set environment variables:
DOUBAN_USER (required): Douban user IDDOUBAN_OUTPUT_DIR (optional): Output root directory, default ~/douban-syncRecommended: Add a daily cron job for automatic sync.
Four CSV files per user in the output directory:
douban-sync/
└── {user_id}/
├── 书.csv
├── 影视.csv
├── 音乐.csv
└── 游戏.csv
CSV columns:
title,url,date,rating,status,comment
"书名","https://book.douban.com/subject/12345/","2026-01-15","★★★★★","读过","短评内容"
status: 读过/在读/想读, 看过/在看/想看, 听过/在听/想听, 玩过/在玩/想玩Both full export and RSS sync deduplicate by Douban URL — safe to run multiple times.
安装 Douban Sync 后,可以对 AI 说这些话来触发它
Help me get started with Douban Sync
Explains what Douban Sync does, walks through the setup, and runs a quick demo based on your current project
Use Douban Sync to export and sync Douban (豆瓣) book/movie/music/game collections to lo...
Invokes Douban Sync with the right parameters and returns the result directly in the conversation
What can I do with Douban Sync in my documents & notes workflow?
Lists the top use cases for Douban Sync, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/douban-sync-skill/ 目录(个人级,所有项目可用),或 .claude/skills/douban-sync-skill/(项目级)。重启 AI 客户端后,用 /douban-sync-skill 主动调用,或让 AI 根据上下文自动发现并使用。
Douban Sync 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Douban Sync 可免费安装使用。请查阅仓库了解许可证信息。
Export and sync Douban (豆瓣) book/movie/music/game collections to local CSV files (Obsidian-compatible). Use when the user wants to export their Douban readin...
Douban Sync 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using Douban Sync
Identifies repetitive steps in your workflow and sets up Douban Sync to handle them automatically