豆瓣Api V2
Install using npm:
$ npm install douban-api-v2
const client = require('douban-api-v2')
const book = new client.Book()
book.findOne('熊猫')
.then(res => console.log(res))
.catch(err => console.error(err))
const movie = new client.Movie()
movie.findOne('熊猫')
.then(res => console.log(res))
.catch(err => console.error(err))
const music = new client.Music()
music.findOne('熊猫')
.then(res => console.log(res))
.catch(err => console.error(err))
Run tests:
$ npm test
Tested with node.js v4.0+
The MIT License (MIT)
Copyright (c) 2016