iCalToRSS

iCalToRSS; is a set of Python scripts I wrote for retrieving iCa events and TODO items and displaying them as RSS newsfeeds inside ;NetNewsWire 2.

I wrote the Python code to parse the iCal calendar files (which are standard RFC2425 Mime-Dir files) and then I use PyRSS2Gen to output the events as RSS news items. Finally NetNewsWire 2.0 executes my scripts and displays the RSS.

Download: iCalToRSS.tar.gz

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.
  • Joe Beirne
    Yes, I am also getting good results with latest version.
  • ken tompkins
    The latest version works fine here; thanks for the script and for following up on it. I'm already using it.

    kt
  • If you feel comfortable doing so it would be really handy if you emailed me (mailto:iCalToRSS@toxicsoftware.com) the .ics file you are having trouble with.

    Cheers.
  • I am also not having any luck. I recieve this error under Panther and Python 2.3:

    Traceback (most recent call last):
    File "./iCalToRSS.py", line 98, in ?
    main(sys.argv)
    File "./iCalToRSS.py", line 92, in main
    iCalToRSS().processAllLocalCalendarFiles()
    File "./iCalToRSS.py", line 50, in processAllLocalCalendarFiles
    theCalendar.read(theFile)
    File "/Users/kcole/Desktop/Downloads/iCalToRSS/Scripts/iCalendar.py", line 117, in read
    theRootNode = theReader.read(iter(file))
    File "/Users/kcole/Desktop/Downloads/iCalToRSS/Scripts/MimeDir.py", line 64, in read
    self.processLine(theLine, nodeStack = theNodeStack)
    File "/Users/kcole/Desktop/Downloads/iCalToRSS/Scripts/MimeDir.py", line 99, in processLine
    theNode.value = theValue
    File "/Users/kcole/Desktop/Downloads/iCalToRSS/Scripts/MimeDir.py", line 54, in setValue
    self._value = Unescape(value)
    File "/Users/kcole/Desktop/Downloads/iCalToRSS/Scripts/MimeDir.py", line 13, in Unescape
    C = theIterator.next()
    StopIteration
  • Joe Beirne
    Jon-

    Please keep up the good work: this use of NNW is a great idea and I am sure we are all very grateful that you have taken this on.

    Keep us posted on your progress.
  • The code only took two evenings to write - there are going to be bugs. I'll try and make it more robust (better error reporting at the very least) and release a new version in a day or two.
  • ken tompkins
    It doesn't work for me either under 10.3.5. I get an error that it can't find the Cal file but I've checked the path (correct), file name (correct) and I think it is set up correctly. I can provide the traceback if you want it.

    ken tompkins
  • Joe Beirne
    Although I had just been wishing for something like this and hoping someone would build it, I have been unable to get this work for some reason. I get a feed but no data is displayed. I have tried multiple calendars and believe I have carefully set the the feed up using your instructions. Any thoughts?

    Thanks for doing this: I cant wait to use it!

    Joe Beirne
  • jcburns
    ,,,unfortunately, the free NetNewsWire Lite 2.0 doesn't seem to offer the 'special subscription' feature. Great python code, though.
blog comments powered by Disqus