【发布时间】:2015-02-10 17:24:30
【问题描述】:
var site = 'www.mysite.com/news.aspx?rss=1';
var yql = 'http://query.yahooapis.com/v1/public/yql?q=' + encodeURIComponent('select * from xml where url="' + site + '"') + '&format=xml';
$.get(yql).done(function (rss)
{
//do the Things
}
目前我有这个功能试图加载外部网站的 RSS 提要。不幸的是,它没有正确加载提要,所以我不能做这些事情。此提要使用 Google 提要 Api 正确加载,但由于该提要很快将被弃用,因此我正尝试使用 Javascript(跨域)中的另一种 RSS 加载方法。我在 YQL 网址上做错了什么吗?
error="Redirected to a robots.txt restricted URL: http(s)://www.mySite.com/news.aspx?rss=1"
【问题讨论】:
标签: javascript rss yql