xcss / jsonbird Goto Github PK
View Code? Open in Web Editor NEW🐣A remote data interface proxy service | 一个远程数据接口代理服务
Home Page: https://bird.ioliu.cn
License: MIT License
🐣A remote data interface proxy service | 一个远程数据接口代理服务
Home Page: https://bird.ioliu.cn
License: MIT License
RT
希望把省份和城市分开,这样方便许多,直接定义名就好如“海南”“海口”,不用在后面加上“省”“市”,个人一点小建议 这样更方便自定义而已
请求:
$.ajax({
url: "https://bird.ioliu.cn/v2/?url=https://dataapi.joinquant.com/apis",
type: 'POST',
data: JSON.stringify({
"method": "get_concepts",
"token": "5b6a9ba1b2f072b726667f2f",
"code": "sw_l1",
}),
}
响应:
error: invalid character '%' looking for beginning of value
浏览器控制台报错:
Access to XMLHttpRequest at 'https://bird.ioliu.cn/v2?url=xxxx' from origin 'http://localhost:8080' has been blocked by CORS policy: Request header field token is not allowed by Access-Control-Allow-Headers in preflight response.
以下是Vue工程中的请求部分(使用axios)
BASE_URL2是v2的请求地址(https://bird.ioliu.cn/v2?url=)
let axios_ = axios.create({ headers:{ token:this.$store.state.token }, timeout:10000, withCredentials:false }) axios_.get(common.BASE_URL2+'xxx/student/'+this.$store.state.user+'.do?timestamp='+new Date().getTime()) .then(res=>{ console.log(res) })
post请求,content-type为application/json时,无法传参数,参数结构为:
{ "msgtype": "text", "text": { "content": "我就是我, 是不一样的烟火@156xxxx8827" }, "at": { "atMobiles": [ "156xxxx8827", "189xxxx8325" ], "isAtAll": false } }
{"data":{},"status":{"code":-1,"message":{"original":null,"response":{"req":{"method":"GET","url":"https://api.douban.com/v2/movie/us_box","headers":{"user-agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36","hm_lvt_930e83393fcca01f1abff14df21cec12":"1497015332","hm_lpvt_930e83393fcca01f1abff14df21cec12":"1497018297"}},"header":{"date":"Fri, 09 Jun 2017 14:34:25 GMT","content-type":"application/json; charset=utf-8","content-length":"91","connection":"close","expires":"-1","set-cookie":["bid=_eznLkZp0vk; Expires=Sat, 09-Jun-18 14:34:25 GMT; Domain=.douban.com; Path=/"],"x-douban-newbid":"_eznLkZp0vk","x-dae-node":"sindar18a","x-dae-app":"movie","server":"dae"},"status":400,"text":"{"msg":"rate_limit_exceeded2: 120.77.67.63","code":112,"request":"GET \/v2\/movie\/us_box"}"},"status":400}}}
如题
代理服务挂了,什么时候修复呀?
求大神修复啊
希望作者可以说明一下自定义header应该怎么用?格式怎么写?
天气接口返回空
{
data: { },
status: {
code: -1,
msg: "something happend. Please checked your id or url"
}
}
歌单可以获取到,但是歌曲现在又没有返回结果了
又要继续要斗智斗勇了 - _ -
网站好几天访问不了了...希望大佬有时间修复一下
使用https://bird.ioliu.cn/v1?url=http://stg3-web.itp-live.pingan.com.cn:13080/live/sdk/entryLiveRoom.do
发现ajax 请求头内带的附加的信息
Connection:keep-alive
Content-Length:18
content-type:application/x-www-form-urlencoded;charset=UTF-8
device:4
Host:bird.ioliu.cn
imei:
nonce:50
Origin:http://1035291532.appservice.open.weixin.qq.com
Pragma:no-cache
Referer:https://servicewechat.com/wx34eff525599bcf25/devtools/page-frame.html
sign:228e9d7dad144cc6338cfc6e98ef8e8b876dc025
timestamp:1498733930
token:dBtTBYF2NShs0eXKOoIrmCrrHz3Xqmyt014FoMfHID6/CzxSCT0+17aNJ62ZMxPd3moW75motfqXSPjRjHhyKA==
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 appservice webview/100000
version:2
X-Requested-With:XMLHttpRequest
无法传递过去,后台无法获取到
使用postman访问http://music.163.com/api/search/pc接口,参数为
('s' = '女儿情');
('offset' = '10');
('limit' = '10');
('type' = '1');
可以得到正确返回结果,但如果使用v2接口post访问http://bird.ioliu.cn/v2/?url=http://music.163.com/api/search/pc会返回
{"msg":"Request method 'GET' not supported","code":400}
请问是bug还是我的使用有问题?
这么好的东西希望能够多推广,至少我是告诉了身边的朋友们,也希望作者能够不断更新新的功能,完善接口文档,比如自定义header如何使用,希望这个不会停用.
谷歌插件,在https网站上post请求给http服务器的数据。请问该怎么使用jsonBird?
JS无法设置请求头Referer,如果是POST请求的话jsonbird使用params写入headers应该可以绕开这个机制,但是GET请求就没有办法做到了。不知道是否可以增加对此需求的解决方案?
以下是我使用的例子
https://bird.ioliu.cn/v2?url=http://api.xiami.com/web?v=2.0&app_key=1&key=女儿情&page=1&limit=10&r=search/songs
请求头:
"Referer":"http://m.xiami.com/"
使用postman可以顺利完成这个请求,但是在浏览器执行js时就会抛出错误refused to set unsafe header referer
真的好用,不用ssl认证也可以进行正常的http请求了,但还是不明白原理
作者是在更新吗
Vue项目中 使用Axios获取数据 通过this.data = response.data 赋值 得不到数据
例如百度搜索建议接口返回数据是gbk格式:http://suggestion.baidu.com/su?wd=%E6%B5%8B%E8%AF%95
经过转发之后中文变成乱码:https://bird.ioliu.cn/v1?url=http://suggestion.baidu.com/su?wd=%E8%AE%BE%E8%AE%A1
status
:
{code: -1, msg: "something happend. Please checked your id or url"}
返回的code都是-1
先感谢提供如此好的工具
最常用的就是HTTP请求转HTTPS,所以需要本地HTTPS部署,请问 如何部署,谢谢
http://bird.ioliu.cn/v2/?url=http://music.163.com/api/search/pc,参数为
header:
cotentType: application/x-www-form-urlencoded
body
('s', '女儿情');
('offset', '10');
('limit', '10');
('type', '1');
并未返回正确结果。
/opt/JsonBird
[email protected] start /opt/JsonBird
supervisor node ./bin/www
sh: 1: supervisor: not found
npm ERR! Linux 4.4.13-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.8.1
npm ERR! npm v2.15.11
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] start: supervisor node ./bin/www
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] start script 'supervisor node ./bin/www'.
npm ERR! This is most likely a problem with the JsonBird package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! supervisor node ./bin/www
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs JsonBird
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls JsonBird
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /opt/JsonBird/npm-debug.log
如題
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.