豆瓣api接口又更新了,有人知道最新的嗎
exports.main = async(event, context) => {
return rp(`http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a?start=${event.start}&count=${event.count}`)
.then(function(res) {
console.log(res);
return res;
})
.catch(function(err) {
console.error(err);
});
}
前面我還查詢的到數據,過了半小時就查詢不到了
2019-08-26
官方的API是沒有問題的!你這里提供的這個不是官方的,是否有限制或者問題這個都不能夠保證,是否安全也不清楚。
建議大家使用官方提供的API:
電影列表API:http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=0&count=10
電影詳情API:`http://api.douban.com/v2/movie/subject/${event.movieid}?apikey=0df993c66c0c636e29ecbb5344252a4a`
2019-08-25
https://douban.uieee.com/v2/movie/in_theaters?start=0&count=10
找了半天找到了這個,親測可用