[英]Does the Google Feed API support returning images from RSS feeds?
[英]RSS feed reader does not works
我從以下網址加載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);
}});
此代碼對其他鏈接(例如,如下所示的加載RSS數據)的效果很好
http://www.nbcnewyork.com/news/local/?rss=y&types=Article,Blog+Post&taxi=y
但不適用於頂部的鏈接,並返回錯誤:
"Feed could not be loaded."
有人可以幫我嗎? 或者,也許建議另一個可以幫助訪問這些提要的API。
我正在訪問跨域數據。 另外,如果您可以建議一些更好的API或訪問跨域RSS提要數據的方法。
您的網址未返回有效的rss feed。 它是XML,但不是RSS / Atom。 請參閱W3C Feed驗證服務 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.