bing
bing copied to clipboard
[通知]暂停对壁纸接口提供JSON数据支持
很抱歉,目前bing壁纸正在筹划新版,新版上线前,仅提供图片数据返回,不提供详细JSON数据(包括分页数据)。
感谢关注。
// https://bing.ioliu.cn/v1/?type=json
{
"data": {
"enddate": "20170707",
"url": "http://www.bing.com/az/hprichbg/rb/Umbrella_ZH-CN8238029705_1920x1080.jpg",
"bmiddle_pic": "http://wx4.sinaimg.cn/bmiddle/006qRazely1fhazs9hhgqj30sg0g0h42.jpg",
"original_pic": "http://wx4.sinaimg.cn/large/006qRazely1fhazs9hhgqj30sg0g0h42.jpg",
"thumbnail_pic": "http://wx4.sinaimg.cn/thumbnail/006qRazely1fhazs9hhgqj30sg0g0h42.jpg"
},
"status": {
"code": 200,
"message": ""
}
}
好纠结,我刚刚想进来下几张图片。
@Meekdai https://bing.ioliu.cn 数据不受影响。
你确定?下载的图片都打不开的。
@Meekdai 稍等,我这边看到问题了。正在查看
是不是七牛里面设置了域名保护?
@Meekdai 好了。
对了,你那个博客里的图片链接可以不需要?imageView2/2/w/1366/q/75/format/webp这截参数的。照常访问。
format参数我已经过滤了,所以加了也没什么效果
OK,现在正常了~
之前写了个脚本,自动重API取图片和说明作为壁纸。今天脚本报错了。我还以为是脚本坏了。。。
感谢开发者,现在我正用的正爽呢,吓我一跳,我还以为要关闭了
难怪脚本最近不生效了,替换接口完美运行,如果能返回图片简介就好了
(index):1 Access to fetch at 'https://bing.ioliu.cn/v1/?type=json' from origin 'http://localhost:4000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
怎麽解決
各位能不能把脚本拿过来参考下,我想搞个脚本来把每天的壁纸作为网页背景搞了好久都不行