From e7d81f48111f1df4869c0a75374aa47fcfe367e1 Mon Sep 17 00:00:00 2001 From: edpibu Date: Sun, 20 Sep 2020 22:16:34 +0200 Subject: [PATCH] Connection to radicale server successfull --- parser.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/parser.py b/parser.py index fa36ffd..109570d 100755 --- a/parser.py +++ b/parser.py @@ -25,6 +25,7 @@ TIMETABLE = [ ('16:45','16:45'), ('17:45','17:45'), ] +DAVURL = "https://cal.edgarpierre.fr" class GoogleSheetsCalParser(HTMLParser): @@ -105,3 +106,10 @@ calParser = GoogleSheetsCalParser() calParser.feed(r.text) # Pushing events to caldav server +import priv + +client = caldav.DAVClient(url=DAVURL, username=priv.USERNAME, + password=priv.PASSWORD) +pr = client.principal() +calendars = pr.calendars() +print(calendars)