本文介绍了现在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?

需要替换"//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.comThere's a free layer and it's way more straightforward than YQL was for RSS to JSONP conversion.

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

09-14 16:13