How to feed for more than 500 posts

The oldsters at blogger, bless their hearts, erect several barriers to innovative use of your blog's feed.

A number of us use our feeds--our complete feeds, not just the maximum recent stuff--to make an index of our blogs, or to reverse the order so that it begins with the oldest publish.

The default blogger feeds, but, display simplest the maximum recent 25 posts. This is pretty easy to get around: you just append "max-results=999" to the feed url, which overrides the 25-publish restriction (changing it with a a bigger one). So the feed for this blog, breaking the 25-put up barrier, is


http://www.androidcentury.com/feeds/posts/default?max-results=999

It turns out that blogger has a 2nd, more-severe restrict of 500 posts in line with feed. Here's how that works, and a way to work around it in case your weblog has greater than 500 posts.

This restrict has in all likelihood been in area for a while. I overlooked it because it isn't always documented and additionally because i do not have extra than 500 posts on any of my blogs. (yet.)


Happily, this restrict is likewise bendy, in a way. All your posts are for your feed. But, you may best see them in 500-put up increments.

For instance, if the first 500 posts of your blog feed are here:
http://YOURBLOG.blogspot.com/feeds/posts/default?max-results=999
the second 500 posts are here:
http://YOURBLOG.blogspot.com/feeds/posts/default?max-results=999&start-index=501
The "begin-index=501" parameter (after the ampersand, that you ought to upload) says to begin the five hundred count at publish no. 501. If you have 809 posts on your weblog, this can yield the oldest 309 of them.

Be aware the "max-effects=999" parameter remains needed to override the alternative default restrict of 25 posts.

This is a lot like the latest decision of yahoo pipes to paginate its feeds, and the treatment is similar.

You should deal with each 500-publish increment as a separate feed, control each as you notice in shape, after which paste the scripts for them serially into your blog to create the complete collection. (use a provider like feed2js to create the script for you.) you could also merge the feeds at yahoo pipes, if that works for you.

By means of the way, there's a comparable 500-put up segmentation of any label feed, and a two hundred-remark segmentation of the remark feed. In each cases the "start-index=" parameter offers you access in your whole feed, in chunks.

That is a nuisance and if it pushes you to mention its now not really worth the problem i do now not blame you. But, with this workaround it is viable to get at your entire feed, in case you need it, blogger's limits however.
Share on Google Plus

0 comments:

Post a Comment