<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>andthennothing.net: Tag coding</title>
    <link>http://www.andthennothing.net/tags/coding?tag=coding</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>&amp;ldquo;first there was a three-legged monkey...&amp;rdquo;</description>
    <item>
      <title>Daily links poster</title>
      <description>&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;</description>
      <pubDate>Tue, 14 Dec 2004 22:38:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:780f2eb3-f109-42fb-b2e7-a3e360266f14</guid>
      <author>jonas.b@home.se (Jonas Bengtsson)</author>
      <link>http://www.andthennothing.net/archives/2004/12/14/daily-links-poster</link>
      <category>metablog</category>
      <category>linkdump</category>
      <category>python</category>
      <category>coding</category>
      <trackback:ping>http://www.andthennothing.net/articles/trackback/127</trackback:ping>
    </item>
  </channel>
</rss>

