A indie technical narrator of China. Aha! 😜
MAKE IT BETTER!
- Twitter: https://twitter.com/zceme
Weibo: https://weibo.com/zceme- Bilibili: https://space.bilibili.com/210242179
License: MIT License
A indie technical narrator of China. Aha! 😜
MAKE IT BETTER!
作者能不能做一下跨域的问题,访问你的地址服务器不允许跨域
Originally posted by @L-doubleJ in https://github.com/zce/douban-api-docs/issues/28#issuecomment-533998376
第一个代理地址返回404
后面几个代理地址访问后提示apikey被禁止了
should we update proxy target to https://api.douban.com
?
https://douban-api.uieee.com/v2/movie/top250/?count=1
👇
http://api.douban.com/api/v2/top250?count=1
Because Douban API does not support trailingSlash
有没有使用这个代理接口解决豆瓣API问题的可用的Kodi豆瓣插件?
国内电影大家都看豆瓣评分,Kodi电影信息插件没有豆瓣,总感觉不完整。
有没有人做出来可用的豆瓣电影信息刮削器呀?
真的非常赞👍,正好做毕业设计,希望服务能一直运行着,非常感谢~~~
Hi!Can I use your uploaded certificate file directly?
Nginx正常按文档中配置的,然后接口报502,502 Bad Gateway,报错内容如下:
An error occurred with this application.
NO_STATUS_CODE_FROM_LAMBDA
帮忙看一下原因吧,谢谢
我想请问为什么我用浏览器获取电影详情就可以获取,但在项目中使用axios获取就会报403错误呢?提示我缺少apikey。
调用大佬你的反代接口还需要apikey吗?
最近太多人因为豆瓣接口的问题找我,确实很苦恼,在此重申一遍:
考虑到确实很多人没有基础,所以产生这样的问题情有可原。但是我希望大家不要急功近利,戒骄戒躁,补充点基础。虽然在你们平时看起来这很浪费时间,但是你们这样就不怕出现问题从而浪费别人的时间么~
首先谢谢博主提供的方法!
我先用您的没有问题,然后照着readmd文档在自己的云服务器上配置了一下,但结果发现仍然有限速,即反向代理并未起作用,ngnix唯一的区别是我没有配置ssl,可能是哪里出问题了?
谢谢!
好吧 我不太熟悉这个怎么私法信息 ,就想亲自感谢作者,提供这个豆瓣api平台,谢谢你的提供,谢谢
作者,你好!
我用了你的nginx配置,反向代理豆瓣电影api,发现有些api请求提示没有权限。具体json
{ "msg": "need_permission", "code": 1000, "request": "GET /v2/movie/subject/1291546/comments" }
同样的请求,你的代理可以正常返回数据。
返回异常的url:(目前就测试了这两个返回有误,其他的不知道)
/v2/movie/subject/1291546/comments
/v2/movie/subject/1291546/reviews
返回正常的url:
/v2/movie/top250
/v2/movie/us_box
我的代理url:
https://api.blogwy.com
大佬,不敢耽误你时间,我来回看了好几遍你的文档 https://douban-api-docs.zce.me/book.html ,但是只有图书接口,没有图书书评的接口,但是文档中有书评的 json 字段,请问是遗漏了书评接口,还是本本就么有?
没有的话,您是怎么知道书评字段 json 结构的?
盼回复。
如下:
https://douban.uieee.com/v2/movie/search?q=Aladdin
返回:
{"msg":"uri_not_found","code":1001,"request":"GET \/v2\/movie\/search"}
NGINX set referer 之后,访问 /v2/book/search?q=xxx
,返回invalid_apikey,由于豆瓣api持续维护中,apikey暂不对个人开放申请;是不是没有你额外加的apikey,无法自行搭建代理服务?
我搭建的这个免费的服务中接口权限更高,可以使用影评、图书、音乐之类的接口,原因是我在代理请求的同时额外添加了一个 apikey 查询参数
{
"msg": "invalid_apikey",
"code": 104,
"request": "GET /v2/book/search?q=xxx"
}
需要在调用 wx.request()
时显式申明 header
中的 Content-Type
,否则请求返回 400
/**
* 网路请求
*/
function request(url, data, successCb, errorCb, completeCb) {
wx.request({
url: url,
method: 'GET',
data: data,
header:{"Content-Type":"json"},
success: function(res) {
if (res.statusCode == 200) {
utils.isFunction(successCb) && successCb(res.data);
}else
console.log('请求异常', res);
},
error: function() {
utils.isFunction(errorCb) && errorCb();
},
complete: function() {
utils.isFunction(completeCb) && completeCb();
}
});
}
微信小程序内核:1.9.94
刚刚试了一下代理发请求 404了
请求:
https://douban.uieee.com/v2/movie/search?q=2019
返回:
{
"msg": "uri_not_found",
"code": 1001,
"request": "GET /v2/movie/search"
}
根据接口文档,接口地址不对吗?
比如我在首页调用了https://douban.uieee.com/v2/movie/in_theaters?start=0&count=4
然后再点击查看更多的时候 再使用https://douban.uieee.com/v2/movie/in_theaters
就会报400,本来以为是没有加start count参数的问题,但是即便加上了还是400
求解
编辑
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.