Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.43 KB

File metadata and controls

32 lines (24 loc) · 1.43 KB

competitive-programming-calendar-importer

Google Apps Script to add competitive programming contest schedules to Google Calendar.

You can just subscribe a Google Calendar created by the script.

Usage

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.

  1. Run clasp create and create a Standalone Scripts project.

  2. Run clasp push. You may have to overwrite a manifest file.

  3. Create a Google Calendar and a Google Doc.

  4. 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)
  5. On the Project page, select index.gs and run updateCalendar. You may have to give the script permissions for Calendar and Doc.

  6. (Optional) Add a time-driven trigger to run the script periodically. 4 times per day or fewer is probably enough.