ucomics Atom feeds for NetNewsWire

MacOSXHints had a useful hint for making feeds containing today's image from a ucomics.com comic, but it incidentally exposed how dodgy RSS' handling of entity encodings is.

So, I made a better version in Perl, that produces an Atom feed instead.

-->Download<--

'chmod a+x' the file, then run it in NetNewsWire 2 with 'File>New Special Subscription>Script', using arguments as described on the original hint page (eg Cornered|cornered|co)

Comments

I noticed that you're rolling your own Atom text in the script, as opposed to using the XML::Atom module. Did you try that?

The reason I ask is that I've been trying to get it to work in a couple of RSS-generating perl things I've written, and have found the module to be completely incomprehensible. The documentation is poor and the supplied examples don't produce valid feeds.

I was hoping that someone else would have figured out how to work it.

I think I have used XML::Atom somewhere else, but it was easy enough just to copy and paste here rather than geting everyone to install extra modules.

I've uploaded a Perl script that produces (almost) a minimal Atom feed here: http://alf.hubmed.org/atomtest.zip

All fields are optional, email address will not be shown; no HTML, URLs are automatically hyperlinked.