testing rssCloud

I'm interested to see how I could add rssCloud support to bucket3.

Here is some code in python that seems to work and notify Dave Winer's cloud server.

import httplib, urllib
params = urllib.urlencode({'url': "http://bucket3.com/blog/feed/rss2.xml"})
headers = {"Content-type": "application/x-www-form-urlencoded", 
    "Accept": "text/plain"}
conn = httplib.HTTPConnection("rpc.rsscloud.org:5337")
conn.request("POST", "/rsscloud/ping", params, headers)
response = conn.getresponse()
print response.status, response.reason
data = response.read()
print data
conn.close()

Comments

how this blog is written

The thing about bucket3 is not so much the generation of static html pages, but that the original content is stored in the file system.

This is important for two reasons:

  1. It makes it easy to create and use other tools (my favorite is bash scripts, but yours may vary) to create this content. bucket3 isjust the publishing system.
  2. It makes it easy to distribute this content, since we have many excelent tools for filesystem content distribution, ranging from rsync, to git, to dropbox, that cover different needs.

Feel free to see how this blog's original content is organized at http://bucket3.com/blog_source/.

And, yes, I call this the "source" of the blog. Once you compile it using bucket3, you get the rendered HTML pages or the RSS feed. (From this point of view, bucket3 is a compiler, while wordpress is an interpreter :-)

Comments