Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,362,293
Community Members
 
Community Events
168
Community Groups

Unable to programmatically view entire calendar from ics subscribe link

Sum Juann I'm New Here Sep 23, 2022

I'm using the iCalendar python module to read in the .ics link you get from subscribing to a Team Calendar. The vevent data I get from parsing the .ics data appears to be from random dates, or at least only a couple months worth. When I import the .ics it into a calendar app like apple calendar or google cal, I can see all dates just fine.

 

import requests
from icalendar import Calendar

r = requests.get("url_to_cal.ics")
cal = Calendar.from_ical(r.content)

for event in cal.walk("vevent"):
  print(event)

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events