Google Apps Script to add competitive programming contest schedules to Google Calendar.
You can just subscribe a Google Calendar created by the script.
Prerequirements:
- You have a Google account.
- You have developing tools listed the below on your machine.
Make sure you have logged in clasp with your Google account.
-
Run
clasp create
and create a Standalone Scripts project. -
Run
clasp push
. You may have to overwrite a manifest file. -
Create a Google Calendar and a Google Doc.
-
On the Project page of your Standalone Script project, Open "File" > "Project properties" > "Script properties and add script properties.
Property Value dstCalendarId (ID of your Google Calendar) eventDbDocId (ID of your Google Doc) -
On the Project page, select
index.gs
and runupdateCalendar
. You may have to give the script permissions for Calendar and Doc. -
(Optional) Add a time-driven trigger to run the script periodically. 4 times per day or fewer is probably enough.