<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>andthennothing.net: Daily links poster</title>
  <subtitle type="html">&amp;ldquo;first there was a three-legged monkey...&amp;rdquo;</subtitle>
  <id>tag:andthennothing.net,2005:Typo</id>
  <generator uri="http://typo.leetsoft.com" version="4.0">Typo</generator>
  <link href="http://andthennothing.net/xml/atom10/article/127/feed.xml" rel="self" type="application/xml+atom"/>
  <link href="http://andthennothing.net/archives/2004/12/14/daily-links-poster" rel="alternate" type="text/html"/>
  <updated>2007-09-04T09:04:18+00:00</updated>
  <entry>
    <author>
      <name>Jonas Bengtsson</name>
      <email>jonas.b@home.se</email>
    </author>
    <id>urn:uuid:780f2eb3-f109-42fb-b2e7-a3e360266f14</id>
    <published>2004-12-14T22:38:00+00:00</published>
    <updated>2007-09-04T09:04:18+00:00</updated>
    <title>Daily links poster</title>
    <link href="http://andthennothing.net/archives/2004/12/14/daily-links-poster" rel="alternate" type="text/html"/>
    <category term="metablog" scheme="http://andthennothing.net/tags/127"/>
    <category term="linkdump" scheme="http://andthennothing.net/tags/127"/>
    <category term="python" scheme="http://andthennothing.net/tags/127"/>
    <category term="coding" scheme="http://andthennothing.net/tags/127"/>
    <content type="html">&lt;p&gt;In my &lt;a href="http://andthennothing.net/archives/2004/12/14/todays-links"&gt;previous post&lt;/a&gt; you can see the result of my recent lack of sleep. It is something vaguely (understatement alert) inspired by &lt;a href="http://tesugen.com/"&gt;Tesugen&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;It is a &lt;a href="http://www.python.org/"&gt;Python&lt;/a&gt; script that gets the &lt;a href="http://del.icio.us/jonas.b"&gt;latest links I&amp;#8217;ve posted to del.icio.us&lt;/a&gt;, and then post all the new links to this blog using the &lt;a href="http://www.atomenabled.org/"&gt;Atom &lt;span class="caps"&gt;API&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;At first I thought I should just post the links that I&amp;#8217;ve added during the same day, but that wouldn&amp;#8217;t work since I don&amp;#8217;t have any server that is running all the time. In some cases I might not be able to run the script for a couple of days. So now I keep a local history of which links I&amp;#8217;ve blogged, and only blog unblogged links.&lt;/p&gt;


	&lt;p&gt;It was yesterday I started working on it. I was really tired at work, and my head was aching, so my plan was to go to bed early. Somehow I ended up starting with this and all of a sudden it was 4.30 a.m (and I had to be at work 10 a.m. today). I really enjoy hacking away for fun once in a while.&lt;/p&gt;


	&lt;p&gt;The main problem was to get the posting to &lt;a href="http://www.blogger.com/"&gt;Blogger&lt;/a&gt; to work. I used &lt;a href="http://daikini.com/source/atomexamples/python/new_entry/"&gt;this example&lt;/a&gt; as a starting point, but there was something wrong with the login. After remembering reading about &lt;a href="http://www.blogger.com/developers/2004/10/apis-and-ssl.pyra"&gt;Blogger changing the authorization model&lt;/a&gt;, I tried using &lt;span class="caps"&gt;HTTP &lt;/span&gt;Basic Authorization over &lt;span class="caps"&gt;HTTPS&lt;/span&gt;. After a while I tried with another password, and it worked, go figure. So I spent a couple of hours trying to fix a problem that wasn&amp;#8217;t there. That proves that it was a wise choice to go home early from work. But it was quite interesting learning a bit about &lt;span class="caps"&gt;WSSE&lt;/span&gt; authorization. Getting del.icio.us to work was really easy as soon as I got libxml2 installed and found &lt;a href="http://dealmeida.net/en/Programming/Python/delicious.html"&gt;this example&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;There might be some changes to the format of my link blog posts&amp;#8230;&lt;/p&gt;</content>
  </entry>
</feed>
