{"id":160294,"date":"2011-10-31T10:07:00","date_gmt":"2011-10-31T10:07:00","guid":{"rendered":"http:\/\/pw201.livejournal.com\/160294.html"},"modified":"2011-10-31T10:07:00","modified_gmt":"2011-10-31T10:07:00","slug":"livejournal-could-be-news","status":"publish","type":"post","link":"https:\/\/www.noctua.org.uk\/blog\/2011\/10\/31\/livejournal-could-be-news\/","title":{"rendered":"Livejournal could be news"},"content":{"rendered":"<p>A thing I found while investigating how to get journal backups going again in the wake of LJ&#8217;s <a href=\"\/blog\/?p=159934\">most recent debacle<\/a>:<BR><BR>A while back, geeks <a href=\"http:\/\/www.google.co.uk\/search?q=%22livejournal+should+be+news%22\">kept saying<\/a> that LiveJournal should be <a href=\"http:\/\/en.wikipedia.org\/wiki\/Usenet\">Usenet<\/a> news, that is, instead of mucking about with all the tedious web forum stuff, it&#8217;d be nice to have a program which let you read comments and entries, kept track of threading and which comments you&#8217;d already read, and so on (remembering what you&#8217;ve read on LJ was the motivation for my <a href=\"\/blog\/?p=54000\">LJ New Comments<\/a> script, but that doesn&#8217;t avoid LJ&#8217;s clunky interface). <BR><BR>This was tricky as there was no obvious way to get all the comments from an entry. There was the old <a href=\"http:\/\/www.livejournal.com\/developer\/exporting.bml\">comment export<\/a> thing, but that only works on your own journal. You could &#8220;screen scrape&#8221; with a program that tried to pull the comments from the human-readable versions of LJ&#8217;s pages, but that&#8217;s considered rude because of the load it&#8217;d put on LJ&#8217;s server, and it&#8217;s fragile as it might break if LJ changes the human-readable output.<BR><BR>Luckily, LJ added a <a href=\"http:\/\/code.livejournal.org\/trac\/livejournal\/changeset\/18041\/trunk\/cgi-bin\/ljprotocol.pl\">bunch of new stuff<\/a> to its <a href=\"http:\/\/www.livejournal.com\/doc\/server\/ljp.csp.xml-rpc.protocol.html\">existing interface<\/a> for &#8220;clients&#8221; (programs which access LJ, like <a href=\"http:\/\/semagic.sourceforge.net\/index.html\">Semagic<\/a>). This includes the <tt>getcomments<\/tt> method, which allows you to get all the comments on any entry you can see. <BR><BR>Add this to the existing machine-readable stuff (Atom feeds, <tt>getfriendspage<\/tt>) and you could probably write either a client specific for LJ (the iPhone client is the reason LJ added the <tt>getcomments<\/tt> method, by the looks of it) or a proxy to turn the whole thing into <a href=\"http:\/\/en.wikipedia.org\/wiki\/Network_News_Transfer_Protocol\">NNTP<\/a> and let you use conventional Usenet clients. Who&#8217;s first?<BR><BR>(Personally, I still plan to be off once I can actually back up this journal, including the comments of my esteemed readers. But I won&#8217;t stop reading, so this would be a nifty toy even for me.)<BR><BR><b>Edit:<\/b> another thing this allows is third parties offering comment feeds of your journal: someone could write a thing which turned the comments from an LJ entry into an Atom feed. Real blogs have these, so LJ could too.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A thing I found while investigating how to get journal backups going again in the wake of LJ&#8217;s most recent debacle:A while back, geeks kept saying that LiveJournal should be Usenet news, that is, instead of mucking about with all the tedious web forum stuff, it&#8217;d be nice to have a program which let you&hellip;<\/p>\n <a href=\"https:\/\/www.noctua.org.uk\/blog\/2011\/10\/31\/livejournal-could-be-news\/\" title=\"Livejournal could be news\" class=\"entry-more-link\"><span>Read More<\/span> <span class=\"screen-reader-text\">Livejournal could be news<\/span><\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":"","_links_to":"","_links_to_target":""},"categories":[19],"tags":[116,146,208],"class_list":["entry","author-paul","post-160294","post","type-post","status-publish","format-standard","category-blog","tag-livejournal","tag-programming","tag-usenet"],"_links":{"self":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/posts\/160294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/comments?post=160294"}],"version-history":[{"count":0,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/posts\/160294\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/media?parent=160294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/categories?post=160294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/tags?post=160294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}