Check Confluence team calendar via script


As the time of writing, Confluence does not have an API that allows user to get events from the team calendar. As a workaround, I wrote a Python script that downloads and parses the ics file (choose subscribe the calendar, then you will see the URL) of the team calendar so to get the events. The source code can be found here.

Here is how it looks:

team_ics

 

One thought on “Check Confluence team calendar via script

  1. Thank you.

    If you will get error like “UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xc3 in position 124: invalid continuation byte”, so you need replace this line “with open(‘leave.ics’, ‘w’) as f:” to “with open(‘leave.ics’, ‘w’, encoding=’utf-8′) as f:”

Leave a comment