0
我有這樣的代碼來讀取與博客的Java API博客的Java API讀取只有最後25個職位
public static void printAllPosts(
GoogleService myService, String blogId)
throws ServiceException, IOException {
// Request the feed
URL feedUrl = new URL("http://www.blogger.com/feeds/" + blogId + "/posts/default");
Feed resultFeed = myService.getFeed(feedUrl, Feed.class);
System.out.println("Number of posts: "+resultFeed.getEntries().size());
// Print the results
//System.out.println(resultFeed.getTitle().getPlainText());
/*for (int i = 0; i < resultFeed.getEntries().size(); i++) {
Entry entry = resultFeed.getEntries().get(i);
System.out.println("\t" + entry.getTitle().getPlainText());
}*/
System.out.println();
}
飼料在這種特殊情況下的帖子,我只是打印圖書館有多少帖子是取而代之,輸出始終是
Number of posts: 25
雖然我在我的博客上有800個帖子。
它爲什麼只抓取最新的25篇文章?我錯過了什麼?我怎樣才能讀取所有文章?