13 lines
446 B
Python
13 lines
446 B
Python
import ics_sync
|
|
import logging
|
|
logging.basicConfig(level=logging.DEBUG)
|
|
try:
|
|
print("Testing fetch...")
|
|
url = "https://salavirtual.unicep.edu.br/d2l/le/calendar/feed/user/feed.ics?token=a964bao41i3ctwr26ff8"
|
|
content = ics_sync.fetch_ics(url)
|
|
print("Content size:", len(content))
|
|
events = ics_sync.parse_ics(content)
|
|
print("Events parsed:", len(events))
|
|
except Exception as e:
|
|
import traceback
|
|
traceback.print_exc()
|