RAPLA-POC, LOGIN-Flow

This commit is contained in:
2023-11-29 11:10:01 +01:00
parent b07b25cf47
commit 08d7851248
9 changed files with 348 additions and 36 deletions

View File

@ -2,6 +2,7 @@ import urllib.error
from urllib.request import urlretrieve
import icalendar
import json
import recurring_ical_events
def parseURL(url: str):
@ -37,9 +38,6 @@ def getNewRapla(url: str):
except urllib.error.URLError:
return -1
with open("calendars/rapla" + kurs + ".ical") as f:
calendar = icalendar.Calendar.from_ical(f.read())
# events = calendar.walk("VEVENT")
file = open("calendars/list.json", "r+")
jsoncal = json.load(file)
jsoncal.update({kurs: "rapla" + kurs + ".ical"})