0
我有从以下URL加载RSS提要的问题RSS阅读器不工作
http://solutions.astrology.com/scripts/it.dll?cust_id=aamfha&doc=daily07short/dailyshort.xml
我使用下面的代码来阅读:
url = 'http://solutions.astrology.com/scripts/it.dll?cust_id=aamfha&doc=daily07short/dailyshort.xml';
$.ajax({
type: "GET",
url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=4&callback=?&q=' + encodeURIComponent(url),
dataType: 'json',
error: function(){
alert('Unable to load feed, Incorrect path or invalid feed');
},
success: function(data){
console.log(data);
}});
此代码工作正常其他链接喜欢加载像下面
http://www.nbcnewyork.com/news/local/?rss=y&types=Article,Blog+Post&taxi=y
RSS数据,但它并没有在顶部的链接工作,并返回一个错误:
"Feed could not be loaded."
有人可以帮我吗?或者,也许可以建议其他可帮助您访问这些Feed的API。
我正在访问跨域数据。此外,如果您可以建议一些更好的API或访问跨域RSS源数据的方式。