I used a script to get and epg from nzepg.org for years but then the site disappeared. Then the past few months I've been using gracenote which was great but now are asking for 20 pounds a month to continue it. Would love to know if there are any other options currently.
I've had a look around and there doesn't seem to be any that I could find.
I found this: http://www.geekzone.co.nz/forums.asp?forumid=126&topicid=79270 but it was a few years ago an don't know if it will work.