|
|
|
|
@ -5,11 +5,12 @@ import requests, arrow, logging
@@ -5,11 +5,12 @@ import requests, arrow, logging
|
|
|
|
|
log_file = "logfile" |
|
|
|
|
url = "https://0783636d.index-education.net/pronote/ical/Agenda.ics?icalsecurise=3972E4CB6D2FF1DE199B75C1969DC54C867D1CA9A09B1C797A0342D5A2749FD9695E01FD2EE008B66074C8A9C38FB737&version=2021.0.2.3¶m=66683d31266f3d31" |
|
|
|
|
dates_file = "./dates.txt" |
|
|
|
|
proxy = "" |
|
|
|
|
|
|
|
|
|
logging.basicConfig(level=logging.INFO, filename=log_file, filemode="a+",format="%(asctime)-15s %(levelname)-8s %(message)s") |
|
|
|
|
|
|
|
|
|
try: |
|
|
|
|
c = Calendar(requests.get(url,proxies="").text) |
|
|
|
|
c = Calendar(requests.get(url,proxies=proxy).text) |
|
|
|
|
e = list(c.timeline) |
|
|
|
|
except Exception: |
|
|
|
|
logging.error("Erreur lors de l'accès au calendrier ! script annulé") |
|
|
|
|
|