{"id":15509637,"url":"https://github.com/willin/wdouban","last_synced_at":"2025-07-26T22:38:31.928Z","repository":{"id":143927769,"uuid":"123664212","full_name":"willin/wdouban","owner":"willin","description":"[DEPRECATED] DouBan SDK for node.js","archived":false,"fork":false,"pushed_at":"2018-03-30T01:14:03.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T22:37:32.533Z","etag":null,"topics":["douban","sdk"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-03-03T05:56:26.000Z","updated_at":"2018-09-25T02:31:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"b52d21ed-75a5-41ee-a8ee-3a2d135d59b4","html_url":"https://github.com/willin/wdouban","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"ba25afc63fe3a109b79383221830c721add76782"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fwdouban","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fwdouban/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fwdouban/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fwdouban/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willin","download_url":"https://codeload.github.com/willin/wdouban/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243012745,"owners_count":20221614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["douban","sdk"],"created_at":"2024-10-02T09:43:24.093Z","updated_at":"2025-03-11T14:27:19.136Z","avatar_url":"https://github.com/willin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wdouban\nDouBan SDK for node.js\n\n[![npm](https://img.shields.io/npm/v/wdouban.svg?style=plastic)](https://npmjs.org/package/wdouban) [![npm](https://img.shields.io/npm/dm/wdouban.svg?style=plastic)](https://npmjs.org/package/wdouban) [![npm](https://img.shields.io/npm/dt/wdouban.svg?style=plastic)](https://npmjs.org/package/wdouban)\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n**Table of Contents**  *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n- [安装](#%E5%AE%89%E8%A3%85)\n- [使用说明](#%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E)\n  - [参数](#%E5%8F%82%E6%95%B0)\n    - [username](#username)\n    - [type](#type)\n    - [status](#status)\n    - [page](#page)\n    - [size](#size)\n  - [响应](#%E5%93%8D%E5%BA%94)\n    - [正确响应](#%E6%AD%A3%E7%A1%AE%E5%93%8D%E5%BA%94)\n    - [报错响应](#%E6%8A%A5%E9%94%99%E5%93%8D%E5%BA%94)\n- [License](#license)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## 安装\n\n```bash\nnpm i --save wdouban\n# or\nyarn add wdouban\n```\n\n## 使用说明\n\n### 参数\n\n#### username\n\n用户名，必须\n\n#### type\n\n类型，默认值 `book` ，可选：\n\n- `book` 图书\n- `movie` 电影\n- `music` 音乐\n\n#### status\n\n状态，默认值 `mark`，可选：\n\n- `mark` 想看\n- `doing` 在看\n- `done` 看过\n- `attend` 参与\n\n#### page\n\n页码，默认值 `1`\n\n#### size\n\n每页条数，默认值 `50`\n\n示例：\n\n```js\nconst wdouban = require('wdouban');\n\nwdouban({\n  username: 'willinwang',\n  type: 'book',\n  status: 'mark',\n  page: 1,\n  size: 50\n}).then((data) =\u003e {\n  console.log(data);\n});\n```\n\n### 响应\n\n#### 正确响应\n\n示例：\n\n```js\n{\n  \"status\": 1,\n  \"total\": 2,\n  \"page\": 1,\n  \"pages\": 1,\n  \"size\": 50,\n  \"data\": [\n    {\n      \"comment\": \"\",\n      \"rating\": null,\n      \"sharing_text\": \"https://www.douban.com/doubanapp/dispatch?uri=/book/27153485/ 来自@豆瓣App\",\n      \"tags\": [\n        \"生活\",\n        \"文学\"\n      ],\n      \"platforms\": [],\n      \"create_time\": \"2018-02-28 16:52:21\",\n      \"status\": \"mark\",\n      \"id\": 1333178450,\n      \"subject\": {\n        \"rating\": {\n          \"count\": 221,\n          \"max\": 10,\n          \"star_count\": 4.5,\n          \"value\": 9.1\n        },\n        \"sharing_url\": \"https://www.douban.com/doubanapp/dispatch?uri=/book/27153485/\",\n        \"pubdate\": [\n          \"2017-10\"\n        ],\n        \"author\": [\n          \"李青菜\"\n        ],\n        \"url\": \"https://book.douban.com/subject/27153485/\",\n        \"pic\": {\n          \"large\": \"https://qnmob3.doubanio.com/lpic/s29558324.jpg?imageView2/2/q/80/w/600/h/3000/format/webp\",\n          \"normal\": \"https://qnmob3.doubanio.com/lpic/s29558324.jpg?imageView2/2/q/80/w/200/h/300/format/webp/sharpen/1\"\n        },\n        \"uri\": \"douban://douban.com/book/27153485\",\n        \"is_released\": true,\n        \"card_subtitle\": \"李青菜 / 2017 / 中信出版社\",\n        \"has_ebook\": false,\n        \"subtype\": \"book\",\n        \"press\": [\n          \"中信出版社\"\n        ],\n        \"title\": \"当喵星人有了门牌号\",\n        \"type\": \"book\",\n        \"id\": \"27153485\",\n        \"null_rating_reason\": \"\"\n      }\n    },\n    {\n      \"comment\": \"\",\n      \"rating\": null,\n      \"sharing_text\": \"https://www.douban.com/doubanapp/dispatch?uri=/book/27073501/ 来自@豆瓣App\",\n      \"tags\": [\n        \"文学\"\n      ],\n      \"platforms\": [],\n      \"create_time\": \"2018-02-28 16:51:17\",\n      \"status\": \"mark\",\n      \"id\": 1333177806,\n      \"subject\": {\n        \"rating\": {\n          \"count\": 316,\n          \"max\": 10,\n          \"star_count\": 4.5,\n          \"value\": 9\n        },\n        \"sharing_url\": \"https://www.douban.com/doubanapp/dispatch?uri=/book/27073501/\",\n        \"pubdate\": [\n          \"2017-8-1\"\n        ],\n        \"author\": [\n          \"[英] 詹姆斯·伍德\"\n        ],\n        \"url\": \"https://book.douban.com/subject/27073501/\",\n        \"pic\": {\n          \"large\": \"https://qnmob3.doubanio.com/lpic/s29479379.jpg?imageView2/2/q/80/w/600/h/3000/format/webp\",\n          \"normal\": \"https://qnmob3.doubanio.com/lpic/s29479379.jpg?imageView2/2/q/80/w/200/h/300/format/webp/sharpen/1\"\n        },\n        \"uri\": \"douban://douban.com/book/27073501\",\n        \"is_released\": true,\n        \"card_subtitle\": \"[英] 詹姆斯·伍德 / 2017 / 河南大学出版社\",\n        \"has_ebook\": false,\n        \"subtype\": \"book\",\n        \"press\": [\n          \"河南大学出版社\"\n        ],\n        \"title\": \"最接近生活的事物\",\n        \"type\": \"book\",\n        \"id\": \"27073501\",\n        \"null_rating_reason\": \"\"\n      }\n    }\n  ]\n}\n```\n\n#### 报错响应\n\n示例：\n\n```js\n{\n  \"status\": 0,\n  \"error\": \"Error Message\"\n}\n```\n\n## License\n\nApache 2.0\n\n通过支付宝捐赠：\n\n![qr](https://cloud.githubusercontent.com/assets/1890238/15489630/fccbb9cc-2193-11e6-9fed-b93c59d6ef37.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Fwdouban","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillin%2Fwdouban","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Fwdouban/lists"}