Wednesday, June 21, 2006

Blogging interfaces

Google/Blogger have good doco on-line:

And there are PERL modules on CPAN.

O'Reilly has a discourse:
[and many others]

I'd like to find some free application to edit the XML or post the blog locally.
O'Reilly have a thing that publishes to "iDisk" on .MAC - not blogger and atom.

Here's some command line posting stuff. Uses "curl".

What BLOGS do I have?
curl -u "$Auth" -o blog.1

Which will give for each blog:
<link href="" rel="" title="stevej-in-oz" type="application/atom+xml"/>
<link href="" rel="service.feed" title="stevej-in-oz" type="application/atom+xml"/>
<link href="" rel="alternate" title="stevej-in-oz" type="text/html"/>

Download a blog
Get the "" tag.
curl -u "$Auth" -o blog.2

Post an entry
The hard bit here is the formating of the XML..

curl -u "$Auth" -o blog.4 -H "Content-type: application/xml" -d @blog-post.1

some useful searches
grep service.feed blog.1
grep service.edit blog.1
grep blog.[12]
grep service.delete blog.[12]

No comments: