Skip to content
hexo extension / Display the data you marked in Douban on your Hexo blog / 展示豆瓣标记条目数据(影视、书籍、音乐、游戏)的 Hexo 插件
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
examples
src
.gitignore
README.md
index.js
package.json

README.md

Demo

做了两个页面阔以看看效果:

豆瓣标记为看过影视列表展示

豆瓣标记为读过书籍列表展示

Demo 随时可能会失效。

使用

yarn add https://github.com/hqweay/hexo-douban-getter.git
// post.md
{% douban userName type pageStart pageEnd %}

// example
{% douban "hqweay" "watchedMovies" 1 3 %}

参数说明

参数 说明
userName 豆瓣 id
type 标记数据类型(支持类型见下文)
pageStart 获取数据开始页
pageEnd 获取数据结束页

type 支持参数

const DoubanTypeEnum = {
  "watchedMovies": "watchedMovies",
  "wishMovies": "wishMovies",
  "watchingMovies": "watchingMovies",
  "readBooks": "readBooks",
  "wishBooks": "wishBooks",
  "readingBooks": "readingBooks",
  "listenedMusics": "listenedMusics",
  "wishMusics": "wishMusics",
  "listeningMusics": "listeningMusics",
  "playedGames": "playedGames",
  "wishGames": "wishGames",
  "playingGames": "playingGames",
}

TODO

  • 按条目 id 展示条目信息
  • 数据缓存至本地
  • 给做一些可视化(遇到了一些难点,可能做不了。)

展示

读过书籍

看过影视

...

其它的就不一一列举了...

说明

该项目使用了 markall-douban-getter 提供的获取豆瓣标记数据的方法。

开发过程中参考了 hexo-tag-douban

You can’t perform that action at this time.