from ics import Calendar
import requests

# Get ICS calendar and create Calendar object from it
url = "https://canvas.jmu.edu/feeds/calendars/user_4xRFx9LoErxmg0AFYuOW5XdSUjDkXIBrG2h6uxJf.ics"
c = Calendar(requests.get(url).text)

# Empty calendar dictionary
eventsCalendar = {}
for event in c.events:
    eventsCalendar[event.name] = event.begin.date()

sortedCalendar = sorted(eventsCalendar.items(), key=lambda item: item[1])
90dd107262366c459927f83988bf1635907e51b7
<mask token>

<mask token>
for event in c.events:
    eventsCalendar[event.name] = event.begin.date()
<mask token>

<mask token>
url = (
    'https://canvas.jmu.edu/feeds/calendars/user_4xRFx9LoErxmg0AFYuOW5XdSUjDkXIBrG2h6uxJf.ics'
    )
c = Calendar(requests.get(url).text)
eventsCalendar = {}
for event in c.events:
    eventsCalendar[event.name] = event.begin.date()
sortedCalendar = sorted(eventsCalendar.items(), key=lambda item: item[1])

from ics import Calendar
import requests
url = (
    'https://canvas.jmu.edu/feeds/calendars/user_4xRFx9LoErxmg0AFYuOW5XdSUjDkXIBrG2h6uxJf.ics'
    )
c = Calendar(requests.get(url).text)
eventsCalendar = {}
for event in c.events:
    eventsCalendar[event.name] = event.begin.date()
sortedCalendar = sorted(eventsCalendar.items(), key=lambda item: item[1])

from ics import Calendar
import requests

# Get ICS calendar and create Calendar object from it
url = "https://canvas.jmu.edu/feeds/calendars/user_4xRFx9LoErxmg0AFYuOW5XdSUjDkXIBrG2h6uxJf.ics"
c = Calendar(requests.get(url).text)

# Empty calendar dictionary
eventsCalendar = {}
for event in c.events:
    eventsCalendar[event.name] = event.begin.date()

sortedCalendar = sorted(eventsCalendar.items(), key=lambda item: item[1])