{"id":730,"date":"2012-01-24T15:20:00","date_gmt":"2012-01-24T15:20:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2012\/01\/24\/syndication-feeds-for-blogs-on-blogger-com-take-cgi-parameters\/"},"modified":"2012-01-24T15:20:00","modified_gmt":"2012-01-24T15:20:00","slug":"syndication-feeds-for-blogs-on-blogger-com-take-cgi-parameters","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2012\/01\/24\/syndication-feeds-for-blogs-on-blogger-com-take-cgi-parameters\/","title":{"rendered":"syndication feeds for blogs on Blogger.com take CGI parameters"},"content":{"rendered":"<p>\t\t\t\tYou can find the URL-s of the <i>Atom<\/i> and the <i>RSS<\/i> feeds for such a blog in its HTML:<br \/><span><\/span><\/p>\n<blockquote><p>\n<span><span>\/html\/head\/link[@rel=&#8221;alternate&#8221; and @type=&#8221;application\/atom+xml&#8221;]<\/span><span>\/html\/head\/link[@rel=&#8221;alternate&#8221; and @type=&#8221;application\/rss+xml&#8221;]<\/span><\/span><\/p><\/blockquote>\n<p>Within the XML of an\u00a0<i>Atom<\/i> feed you can find a node like this:<\/p>\n<blockquote><p>\n<span><span>\/feed\/link[@rel=&#8221;next&#8221;]<\/span>\u00a0<\/span><\/p><\/blockquote>\n<blockquote><p>\n<span>\u00a0<span>\/feed\/link[@rel=&#8221;next&#8221; and type=&#8221;application\/atom+xml&#8221;]<\/span>\u00a0<\/span><\/p><\/blockquote>\n<div>\n<span><\/p>\n<div>\n<span>Found 1 nodes:<\/span><\/div>\n<div>\n<span>&#8212; NODE &#8212;<\/span><\/div>\n<div>\n<span><\/span><\/div>\n<div>\n<span><br \/><\/span><\/div>\n<p><\/span><\/div>\n<p>\nThe\u00a0<span>href<\/span> attribute looks rather interesting, it uses these CGI parameters:<\/p>\n<ul>\n<li><span>start-index<\/span><\/li>\n<li><span>max-results<\/span><\/li>\n<\/ul>\n<div>\n<div>\n<span><br \/><\/span><\/div>\n<p><span>Actually the <\/span><span>href<\/span><span> used the somehow internal URL of that blog, but apparently both &#8220;public&#8221; URL and internal URL seem rather interchangeable \u2013 t<\/span><span>rial and failure &#8220;proved&#8221; that. Furthermore these CGI parameters also work on the URL of the <i>RSS<\/i> feed, not just the <i>Atom<\/i> feed.<\/span><\/div>\n<div>\n<span><br \/><\/span><\/div>\n<div>\n<span>BTW: Both feed XML-s carry an element <\/span><span>openSearch:totalResults<\/span><span>, find it like this:<\/span><\/p>\n<blockquote><p>\n<span>\/feed\/openSearch:totalResult<br \/>\/rss\/channel\/openSearch:totalResult<\/span><\/p><\/blockquote>\n<p>\u2026 for Atom resp. RSS.<br \/><span><br \/><\/span><br \/><span>It tells you exactly, what it says, i.e. the number of total results.<\/span><br \/><span><br \/><\/span><br \/><span>So you may very well read blog feed XML-s in small chunks, until you reach their end. I assume, this is what <\/span><i>Google Reader<\/i><span> does e.g. . It shows you the most recent blog articles (resp. their stubs) initially, and extends the list, when it notices, you are scrolling &#8220;beyond the end&#8221;.<\/span><\/div>\n<div>\n<span><br \/><\/span><\/div>\n<div>\nYes, reading XML can be fun. Of course <a href=\"http:\/\/tidy.sourceforge.net\/\">tidying<\/a> helps (me) a lot, and emacs&#8217;s <a href=\"http:\/\/www.emacswiki.org\/emacs\/NxmlMode\">nxml-mode<\/a> in my case.<\/p>\n<p>Of course, any pointers to relevant Blogger API documentation is kindly appreciated.<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>You can find the URL-s of the Atom and the RSS feeds for such a blog in its HTML: \/html\/head\/link[@rel=&#8221;alternate&#8221; and @type=&#8221;application\/atom+xml&#8221;]\/html\/head\/link[@rel=&#8221;alternate&#8221; and @type=&#8221;application\/rss+xml&#8221;] Within the XML of an\u00a0Atom feed you can find a node like this: \/feed\/link[@rel=&#8221;next&#8221;]\u00a0 \u00a0\/feed\/link[@rel=&#8221;next&#8221; and type=&#8221;application\/atom+xml&#8221;]\u00a0 Found 1 nodes: &#8212; NODE &#8212; The\u00a0href attribute looks rather interesting, it uses these [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-730","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-bM","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=730"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/730\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}