现在Yahoo已关闭YQL查询服务替换 [英] YQL query service replacement now that Yahoo shut it down

查看:85
本文介绍了现在Yahoo已关闭YQL查询服务替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,雅虎关闭了query.yahooapis.com,如以下消息所示,有人知道免费更换吗?

So now that Yahoo shut down query.yahooapis.com as the following message indicates, does anyone know of a free replacement?

重要的EOL通知:截至2019年1月3日,星期四,YQL服务 在query.yahooapis.com的网站将被淘汰.这将影响以下用户 datatables.org以及使用此功能创建功能的开发人员 YQL服务.要继续使用我们的免费Yahoo Weather API,请使用 https://weather-ydn-yql.media.yahoo.com/forecastrss 作为您的新API 端点.请与yahoo-weather-ydn-api@oath.com联系以获得证书 免费使用此Yahoo Weather API服务.其他基于YQL的 使用query.yahooapis.com的服务将不再运行."

"Important EOL Notice: As of Thursday, Jan. 3, 2019, the YQL service at query.yahooapis.com will be retired. This will impact users of datatables.org as well as developers who creates features using this YQL service. To continue using our free Yahoo Weather APIs, use https://weather-ydn-yql.media.yahoo.com/forecastrss as your new API endpoint. Contact yahoo-weather-ydn-api@oath.com for credentials to onboard to this free Yahoo Weather API service. Other YQL based services that use query.yahooapis.com will no longer operate."

需要替换"//query.yahooapis.com/v1/public/yql?q="才能使我的rss刮板工作.

Need to replace "//query.yahooapis.com/v1/public/yql?q=" for my rss scraper to work.

function yql(a, b) {
        return (
          "**//query.yahooapis.com/v1/public/yql?q=**" +
          encodeURIComponent(
            "select * from " +
              b +
              ' where url="' +
              a +
              '" limit ' +
              params.feedcount
          ) +
          "&format=json"
        );
      }

推荐答案

我发现了这一点,对我来说非常有用. https://api.rss2json.com 有一个免费层,它比RSS到JSONP转换的方式比YQL更直接.

I found this and it worked great for me. https://api.rss2json.com There's a free layer and it's way more straightforward than YQL was for RSS to JSONP conversion.

这篇关于现在Yahoo已关闭YQL查询服务替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆