Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to programmatically view entire calendar from ics subscribe link

Sum Juann September 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
AUG Leaders

Atlassian Community Events