문제

Currently when I call google rss/atom feed loader, I always get only 4 results in the response. How can I get all the items in the response?

I need the results for my android app.

'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://www.digg.com/rss/index.xml'

도움이 되었습니까?

해결책

I got the answer. I just need to add a "num" parameter to my query https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://www.digg.com/rss/index.xml&num=30

다른 팁

The 'num' parameter does not work for 'find' method it only works for 'load' method. So I don't think there is any solution to this problem.

Use feed.setNumEntries(7); for retrieving more than 4 entries or number of items you want to retrieve.

var feed = new google.feeds.Feed("http://www.wsj.com/xml/rss/3_7085.xml");
feed.setNumEntries(7);

Read more: Google Feed API Developer's Guide

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top