{"id":5936,"date":"2016-01-09T16:05:12","date_gmt":"2016-01-09T15:05:12","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=5936"},"modified":"2016-01-09T16:05:12","modified_gmt":"2016-01-09T15:05:12","slug":"another-little-software-development-project-create-an-emacs-style-diary-from-the-atom-feed-of-my-blogs","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2016\/01\/09\/another-little-software-development-project-create-an-emacs-style-diary-from-the-atom-feed-of-my-blogs\/","title":{"rendered":"another little software development project: create an Emacs style diary from the Atom feed of my blog(s)"},"content":{"rendered":"<ul>\n<li><a href=\"http:\/\/Jochen.Hayek.name\/wp\/blog-en\/feed\/\">http:\/\/Jochen.Hayek.name\/wp\/blog-en\/feed\/<\/a><\/li>\n<\/ul>\n<p>The XML looks like this:<\/p>\n<ul>\n<li>each article on the blog is an &#8220;<code>&lt;item&gt;\u2026&lt;\/item&gt;<\/code>&#8221; on the list of the Atom feed<\/li>\n<li>each &#8220;<code>&lt;item&gt;\u2026<\/code>&#8221; has<\/li>\n<li>a &#8220;<code>&lt;title&gt;\u2026<\/code>&#8220;<\/li>\n<li>a &#8220;<code>&lt;link&gt;\u2026<\/code>&#8220;<\/li>\n<li>and a &#8220;<code>&lt;pubDate&gt;\u2026<\/code>&#8220;<\/li>\n<\/ul>\n<p>That&#8217;s all I need. Well \u2026 \u2013 WordPress truncates the blog article list shown in the Atom\u00a0feed, and sometimes (at least) I want to get a longer version of this list. IIRC there are ways to instruct an\u00a0Atom feed URL to return a longer list.<\/p>\n<ul>\n<li>The <em>link<\/em> needs a little rewriting, so that it looks like the URL shown above.<\/li>\n<li>The <em>pubDate<\/em> also needs (very little) rewriting.<\/li>\n<li>The order of the items is <em>reverse chronological<\/em>, i.e. <em>youngest first<\/em>\u00a0\u2013 in my diary I want it the other way round.<\/li>\n<\/ul>\n<p>Q: Why do I need this little converter at all?<br \/>\nA: In order to document my work in my diary (of course). I am documenting my life in my diary.<\/p>\n<p>Update: Actually I want a &#8220;stream&#8221; describing <strong>all<\/strong> my activities on <strong>whatever<\/strong> sites:<\/p>\n<ul>\n<li>creating an article<\/li>\n<li>updating an article<\/li>\n<li>removing an article<\/li>\n<li>\u2026<\/li>\n<\/ul>\n<p>I am going to start another article describing the more general approach and listing the sites concerned. I assume Atom feeds are not powerful enough to describe what I need.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/Jochen.Hayek.name\/wp\/blog-en\/feed\/ The XML looks like this: each article on the blog is an &#8220;&lt;item&gt;\u2026&lt;\/item&gt;&#8221; on the list of the Atom feed each &#8220;&lt;item&gt;\u2026&#8221; has a &#8220;&lt;title&gt;\u2026&#8220; a &#8220;&lt;link&gt;\u2026&#8220; and a &#8220;&lt;pubDate&gt;\u2026&#8220; That&#8217;s all I need. Well \u2026 \u2013 WordPress truncates the blog article list shown in the Atom\u00a0feed, and sometimes (at least) I want to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[120,666],"tags":[],"class_list":["post-5936","post","type-post","status-publish","format-standard","hentry","category-emacs","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1xK","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/5936","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=5936"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/5936\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=5936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=5936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=5936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}