Files
Django_kube/Webcal-python/webcal.py
T

14 lines
372 B
Python

from ics import Calendar
from urllib.request import urlopen # py3
import requests # Alternative: use requests
url = "webcal://prometheusgroup.pagerduty.com/private/ec39afcfcc8fad708b335db797b2c1f4324f7f7097b3c1b65c3c0cea08388915/feed/PLHRBFV"
urlopen(url)
#c = Calendar(urlopen(url).read().decode('iso-8859-1'))
#c = Calendar(requests.get(url).text)
#c
#print(c)