Google Groups Home
Help | Sign in
How to get all the posts on the blog
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Peng  
View profile
 More options May 1, 3:00 pm
From: Peng <qiaopeng...@hotmail.com>
Date: Thu, 1 May 2008 12:00:21 -0700 (PDT)
Local: Thurs, May 1 2008 3:00 pm
Subject: How to get all the posts on the blog
Hi,
I used Gdata API to grab information from blogs with the blogID and it
works well. But I found using the method Feed resultFeed =
myService.getFeed(FeedUrl, Feed.class) cannot help me to get all of
the posts with the method resultFeed.getEntries(). Instead, the method
only gives me some of the lataset blog post.I'm wandering if anyone
could tell me how to get all the posts in a block, many thanks!

Peng


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff Scudder  
View profile
 More options May 2, 6:41 pm
From: Jeff Scudder <j...@google.com>
Date: Fri, 2 May 2008 15:41:48 -0700 (PDT)
Local: Fri, May 2 2008 6:41 pm
Subject: Re: How to get all the posts on the blog

On May 1, 12:00 pm, Peng <qiaopeng...@hotmail.com> wrote:

> Hi,
> I used Gdata API to grab information from blogs with the blogID and it
> works well. But I found using the method Feed resultFeed =
> myService.getFeed(FeedUrl, Feed.class) cannot help me to get all of
> the posts with the method resultFeed.getEntries(). Instead, the method
> only gives me some of the lataset blog post.I'm wandering if anyone
> could tell me how to get all the posts in a block, many thanks!

> Peng

Hi Peng,

Depending on the number of posts in the blog, you might not be able to
get all of the posts with a single HTTP GET. Instead, you can get all
of the blog posts in chunks. To do this, you can construct a query and
use the max-results and start-index parameters to specify which chunk
you want. Another option would be to look for a "next" link in the
first feed that you get. This next link has the URL for the next chunk
of blog posts, each feed should have one if there are more results.

Happy coding,

Jeff


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google