Export Course Schedule (.ics)
export_course_schedule_icsGenerate an .ics calendar of weekly recurring course meetings from CRNs and department codes, using public OBS schedule data without login.
Instructions
Build an iCalendar (.ics) document from the weekly meetings of the given CRNs, read from the public OBS course schedule (no login). Each meeting becomes a weekly recurring event in Europe/Istanbul time between the first and last day of classes. Those two dates are taken from term_start/term_end; when omitted the academic calendar page is checked, but it covers only the displayed month, so the result is often status='term_dates_required' with no calendar: ask the user for the dates instead of guessing. Meetings whose day or time is a placeholder ('-', '--') are listed in 'skipped' and never given a time; CRNs not found in the scanned departments are in 'missing_crns'. Holidays are not excluded from the recurrence. Returns the text in 'ics'; it does not write a file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crns | Yes | ||
| term_end | No | ||
| term_start | No | ||
| program_type | No | LS | |
| department_codes | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |