iCalendar only showing 3 months python

Viewed 29

I have a python script that reads in an .ics file. I'm able to parse the data just fine but notice I'm only seeing events for the first 3 months of the year (Jan-Mar), and do not see events past that. Is there pagination or query parameter I need to pass in somewhere? When I download the same .ics file and open it in my desktop calendar, I can see events for the whole year. The .ics is an export from an Atlassian/Confluence Team Calendar if that matters.

Link to library: https://icalendar.readthedocs.io/en/latest/index.html

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
Related