I have a Python-based program that adds events to a Google Calendar. To add events that repeat, I need to specify a recurrent_data string that conforms to the RFC 2445 standard. An example is below, from http://code.google.com/apis/calendar/data/1.0/developers_guide_python.html#CreatingRecurring:
'DTSTART;VALUE=DATE:20070501\r\n'
+ 'DTEND;VALUE=DATE:20070502\r\n'
+ 'RRULE:FREQ=WEEKLY;BYDAY=Tu;UNTIL=20070904\r\n'
Has anyone written a set of functions that will automatically generate these 开发者_运维知识库strings, and/or otherwise write recurring events to Google Calendar? It doesn't seem too difficult to write some functions myself, but I wanted to check whether I'd be duplicating any long-standing efforts in the ical or GData API communities.
All I found was the iCalendar module which can create RFC 2445-compliant data. Your best bet right now might be creating a template based on the Example section here provided by Google.
There is another library called icalendar which is available as node.js npm module called icalendar.
精彩评论