douban-export

Exports viewing history, reading history, and similar data using Douban cookies and organizes the exported data into a project directory.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "douban-export" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9b3e7f7d55e6b4c3a395d4eb3073a8466d049100f0b3e2785f373a4b496d75ab. Verify the upstream source and version against https://skillhub.cn/skills/user_4cc07111/douban-export before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Exports viewing history, reading history, and similar data using Douban cookies and organizes the exported data into a project directory.

0 Downloads

Introduction source: third_party · user_4cc07111 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: douban-export
slug: douban-export
version: 1.0.0
displayName: 豆瓣数据导出
summary: 通过豆瓣 Cookie 导出观影记录、阅读记录等数据并整理到项目目录
tags: [douban, export, 豆瓣, 数据导出, 观影]
description: 豆瓣数据导出技能。通过用户提供豆瓣 Cookie,导出用户的观影记录、阅读记录等数据,并整理到项目目录中。适用于豆瓣数据备份、观影记录迁移、书影音数据同步等场景。

Douban Export - 豆瓣数据导出器

概述

此技能通过豆瓣 Cookie 认证,导出用户的观影记录、阅读记录等数据,自动整理到 standalone 项目目录中。

项目路径配置

导出数据保存路径:

{PROJECT_ROOT}/standalone/
├── 影视/
│   └── records/
│       └── {年份}.md
└── 阅读/
    └── books/
        └── {年份}.md

使用前提

1. 获取豆瓣 Cookie

  1. 登录豆瓣网页版 (https://www.douban.com)
  2. 按 F12 打开开发者工具
  3. 切换到「网络」(Network) 标签
  4. 刷新页面
  5. 找到任意请求,复制请求头中的 Cookie 值

2. Cookie 格式示例

bid=xxxxxx; dbcl2=xxxxxx; ck=xxxxxx; ...

工作流程

第一步:用户提供 Cookie

用户需要提供完整的豆瓣 Cookie 字符串。

第二步:运行导出脚本

使用 Python 脚本导出数据:

cd {PROJECT_ROOT}/standalone/技能/豆瓣导出
python export.py

第三步:数据整理

脚本会自动:

  1. 获取观影记录
  2. 获取阅读记录
  3. 整理为 Markdown 格式
  4. 保存到对应目录

导出内容

观影记录

字段 说明
名称 电影/剧集名称
年份 上映年份
评分 用户评分(1-5星)
观看日期 标记时间
类型 电影/剧集
短评 用户评价

阅读记录

字段 说明
书名 书籍名称
作者 作者名
评分 用户评分(1-5星)
阅读日期 标记时间
状态 想读/在读/读过
短评 用户评价

输出格式

观影记录格式

# {年份}年观影记录

> 最后更新:{日期}

---

## 电影

| 日期 | 名称 | 年份 | 评分 | 短评 |
|------|------|------|:----:|------|
| MM/DD | 电影名 | 2024 | ⭐⭐⭐⭐ | 简短评价 |

---

## 剧集

| 日期 | 名称 | 年份 | 集数 | 评分 | 短评 |
|------|------|------|------|:----:|------|
| MM/DD | 剧集名 | 2024 | 16集 | ⭐⭐⭐⭐⭐ | 简短评价 |

---

## 年度统计

| 类型 | 数量 | 平均评分 |
|------|:----:|:--------:|
| 电影 | XX | X.X |
| 剧集 | XX | X.X |
| **合计** | **XX** | **X.X** |

配置文件

Cookie 配置保存在 config.json:

{
  "cookie": "你的豆瓣Cookie",
  "user_id": "你的豆瓣用户ID",
  "export_types": ["movie", "book"],
  "output_dir": "../../"
}

注意:config.json 包含敏感信息,已添加到 .gitignore,不会被提交到仓库。

使用示例

用户:帮我导出豆瓣观影记录,Cookie是 xxx
助手:好的,我来配置并运行导出脚本...

用户:更新 Cookie
助手:好的,请提供新的 Cookie...

用户:导出阅读记录
助手:好的,我来导出阅读记录...

注意事项

  1. Cookie 有效期:豆瓣 Cookie 有效期有限,过期需重新获取
  2. 请求频率:脚本会控制请求频率,避免触发反爬
  3. 数据隐私:Cookie 配置文件不会被提交到 Git
  4. 仅供个人使用:仅用于导出自己的数据

资源引用

  • export.py - Python 导出脚本
  • config.json - 配置文件(需用户创建)
  • references/api.md - 豆瓣 API 参考

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供豆瓣数据导出功能,满足用户数据备份、观影记录迁移等实际需求
  • 属于明确场景的通用工具,受众较广,实用性强
Trigger Precision90/100

Highlights

  • description 明确描述了功能和使用场景
  • 触发词如“豆瓣数据导出”、“观影记录”、“阅读记录”等覆盖合理,边界清晰
Structure and Standards95/100

Highlights

  • 文档结构完整,包含概述、项目路径配置、使用前提、工作流程、导出内容、输出格式、配置文件、使用示例、注意事项等
  • 步骤清晰,有端到端示例,frontmatter 完整
Execution Reliability70/100

Areas to improve

  • Missing referenced files Reported severity: Major

    SKILL.md 中引用了 references/api.md 文件,但该文件未包含在传入内容中

    Recommendation: 请补充 references/api.md 文件,或移除对该文件的引用

Highlights

  • 提到了 Cookie 获取方式、配置文件格式、请求频率控制、数据隐私保护等
Evidence Verifiability (mean of the first four)85/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • www.douban.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.