Convert to tags from "*" to "tags/*".
[blog.git] / posts / Atomgen.mdwn
1 [[!meta  title="Atomgen"]]
2 [[!meta  date="2009-03-28 05:48:23"]]
3 I've been using [Atom
4 feeds](http://en.wikipedia.org/wiki/Atom_%28standard%29) to publish
5 announcements to my course websites recently.  The ‘please check this
6 page daily for changes’ directives I saw on a few other pages were too
7 painful to bear ;).  I've written a little PHP script to convert the
8 atom.xml into XHTML so non-atom students can still read the
9 announcements online, and I've been using
10 [rss2email](http://rss2email.infogami.com/) in a cron job and a
11 [procmail](http://www.procmail.org/) rule to automatically email the
12 class any new announcements I post in the feed.  It works rather well
13 I think, even if noone ends up actually looking at the feed ;).
14
15 Anyhow, I wrote up a little command line wrapper around Sylvain
16 Hellegouarch's [Atomixlib](http://pypi.python.org/pypi/atomixlib/),
17 which is based on [Amara](http://xml3k.org/Amara/) or
18 [ElementTree](http://pypi.python.org/pypi/elementtree/).  However,
19 Sylvain seems to be falling behind as ElementTree and Amara continue
20 to evolve, so I recently rewrote my script to run off
21 [Amara2](http://xml3k.org/Amara2) directly, since Amara's _bindery_
22 interface is wonderful (well, for data manipulation anyway.
23 Attributes, prefixes, and tree construction don't make much sense to
24 me yet...).
25
26 You can grab my script and see some simple usage examples on my [code
27 page](http://www.physics.drexel.edu/~wking/code/#atomgen).
28
29 [[!tag tags/programming]]